GitHubinator
GitHubinator copied to clipboard
Sublime Text plugin that shows selected text on remote GitHub or Bitbucket repo
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.

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).