Git Product home page Git Product logo

gitlink's Introduction

GitLink

A Jetbrains plugin that provides shortcuts to open a file or commit in GitHub, Bitbucket, GitLab, Gitea, Gogs or GitBlit using the default browser.

demo

Installation

This plugin is published on the JetBrains Plugin Repository:

Preferences → Plugins → Browse Repositories → Search for "GitLink"

From Source

Clone this repository:

$ git clone https://github.com/ben-gibson/GitLink
$ cd GitLink

Update the permissions:

 $ chmod +x ./gradlew

Build the plugin zip file:

$ ./gradlew buildPlugin

Install the plugin from ./build/distributions/GitLink-*.zip:

Preferences → Plugins → Install plugin from disk

Development

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

Usage

After installing the plugin set your remote host and enabled extensions in the preferences:

  Preferences → Other Settings → GitLink

Make sure you have registered your projects root under the version control preferences:

  Preferences → Version Control (see unregistered roots)

To open the current file in the default browser:

  View → Open in (your selected host) or
  Select in... → Browser (GitLink)

Shortcuts are also available on the annotation gutter and VCS log window.

When viewing a file, the URL generated references the current commit unless that commit does not exist on the remote repository in which case it references the current branch instead. If the current branch also does not exist on the remote repository the default branch defined in the plugin configuration is used instead.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

Please see LICENSE for details.

gitlink's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.