ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Git​Hubinator

by ehamiter ALL Trending

Sublime Text plugin that shows selected text on remote GitHub or Bitbucket repo

Details

  • 2021.02.01.20.27.10
  • github.​com
  • github.​com
  • 5 months ago
  • 2 hours ago
  • 10 years ago

Installs

  • Total 24K
  • Win 9K
  • Mac 10K
  • Linux 4K
Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3
Windows 2 6 8 7 3 6 4 0 11 2 4 4 3 5 6 1 5 2 6 3 5 7 10 15 6 3 1 6 5 5 5 4 1 0 2 5 1 7 5 4 6 7 3 7 2 3
Mac 2 4 4 5 4 1 0 1 1 6 7 0 2 6 1 4 3 4 1 2 3 5 1 8 5 3 7 17 3 3 3 3 1 1 0 1 1 2 2 1 1 0 1 2 1 6
Linux 0 3 1 5 0 1 1 2 1 0 0 0 1 2 0 1 2 1 1 0 0 3 3 2 0 2 1 1 0 1 1 3 2 0 1 2 2 0 6 2 0 1 1 1 0 1

Readme

Source
raw.​githubusercontent.​com

GitHubinator*

*With regards to Dr. Heinz Doofenshmirtz

This will allow you to select text in a Sublime Text file, and see the highlighted lines on GitHub's remote repo, if one exists.

Screenshot

Installation

If you use Package Control, just install it from there. If not:

Clone this repo to your Sublime Text Packages folder (ST3 example shown below):

cd ~/"Library/Application Support/Sublime Text 3/Packages/"
git clone https://github.com/ehamiter/GitHubinator.git

The plugin should be picked up automatically. If not, restart Sublime Text.

Configuration

The defaults should work for most setups, but if you have a different remote name or use GitHub Enterprise, you can configure remote and host in the Githubinator.sublime-settings file:

{
  "default_remote": "origin",
  "default_host": "github.com"
}

To change the branch name, edit Default.sublime-commands.

For example, to change the branch name from master to main, edit the following as such:

From:

{
    "caption": "GitHubinator Blame on Master",
    "command": "githubinator",
    "args": { "permalink": false, "mode": "blame", "branch": "master" }
  },

To:

{
    "caption": "GitHubinator Blame on Main",
    "command": "githubinator",
    "args": { "permalink": false, "mode": "blame", "branch": "main" }
  },

Usage

Select some text. Activate the context menu and select “GitHubinator” or by keypress (⌘\ by default, configurable in .sublime-keymap file).