Created
May 4, 2020 04:17
-
-
Save m1no/cca414e9d6917965f394c486aaf0444e to your computer and use it in GitHub Desktop.
Jetbrains GIT clone via URL from your browser on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Issue: | |
-- | |
Jetbrains released a Chrome Extension for working as a companion app to the Toolbox App. | |
Allowing you from the major repository Web UIs (Github, Bitbucket..) to click a link and | |
opening up directly your IDE. | |
Unfortunately this extension does not work properly with my company BitBucket server installation. | |
It always wanted to open IDEA rather then my main tool PyCharm. | |
But i was curious how they did it. | |
Solution: | |
-- | |
Tested on: | |
- Toolbox App 1.17.6856, macOS 10.15.4 | |
JetBrains Toolbox Extension Google Chrome: | |
https://chrome.google.com/webstore/detail/jetbrains-toolbox-extensi/offnedcbhjldheanlbojaefbfbllddna | |
By using https://unminify.com/ to unminify the packed Chrome Extensions javascript files: | |
/Users/foobar/Library/Application\ Support/Google/Chrome/Default/Extensions/offnedcbhjldheanlbojaefbfbllddna/1.17.6865_0/jetbrains-toolbox-bitbucket-public.js | |
Clone GIT URL format, works through the browser under OS X: | |
jetbrains://<Application Shortcut ex: idea, pycharm...>/checkout/git?checkout.repo=<Clone URL ex: ssh://git@...>&idea.required.plugins.id=Git4Idea | |
Discussion: | |
-- | |
This URL is realized through the native Custom URL Scheme feature for Mac Apps as defined here: | |
https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app | |
What parameters jetbrains:// accepts seem to be not publicly documented, but seem to be somehow consistent across the JetBrain IDEs. | |
Additionally Jetbrain IDEs seem to have an open Webserver once started that allows also similar operations: | |
https://www.develar.org/idea-rest-api/#api-Platform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment