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

Git​Hubinator

by ehamiter ALL

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

Details

  • 2021.01.22.20.57.06
  • github.​com
  • github.​com
  • 5 days ago
  • 37 minutes ago
  • 9 years ago

Installs

  • Total 23K
  • Win 8K
  • Mac 10K
  • Linux 4K
Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13
Windows 4 6 4 5 2 5 6 4 2 2 4 4 3 5 2 3 0 4 2 9 3 4 8 3 2 4 3 5 3 1 6 6 3 0 4 3 4 3 2 7 5 1 5 6 2 5
Mac 4 1 1 0 3 6 5 2 4 1 1 1 1 3 4 3 2 1 0 4 4 2 2 4 1 1 1 3 1 2 1 3 1 1 1 2 2 1 0 3 0 2 2 0 5 0
Linux 3 2 0 3 1 2 0 0 0 1 2 2 1 1 1 1 1 0 1 0 1 2 1 2 1 1 1 1 1 1 2 1 1 0 1 1 0 0 1 1 1 0 1 0 1 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).