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.02.01.20.27.10
  • github.​com
  • github.​com
  • 2 months ago
  • 2 hours ago
  • 9 years ago

Installs

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