A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser. It can also optionally copy the URL to the clipboard.
This plugin is published on the JetBrains Plugin Repository:
Preferences → Plugins → Browse Repositories → Search for "Open in Git host"
Clone this repository:
$ git clone https://github.com/ben-gibson/jetbrains-open-in-git-host
$ cd jetbrains-open-in-git-host
Update the permissions:
$ chmod +x ./gradlew
Build the plugin zip file:
$ ./gradlew buildPlugin
Install the plugin from ./build/distributions/RemoteRepositoryMapper.zip
:
Preferences → Plugins → Install plugin from disk
Update the permissions:
$ chmod +x ./gradlew
Execute an IntelliJ IDEA instance with the plugin you're developing installed:
$ ./gradlew runIdea
Run the tests:
$ ./gradlew test
After installing the plugin set your remote host in the preferences:
Preferences → Other Settings → Open in Git host
Make sure you have registered your projects root under the version control preferences:
Preferences → Version Control (see unregistered roots)
Open a project file that is under Git version control in the editor:
View → Open in Git host or
Select in... → Open in Git host
The current branch is used unless it does not exist in the remote host in which case it defaults to using the master branch. The resulting link can be copied to the clipboard depending on your plugin preferences.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Please see LICENSE for details.