Get Git Url (GGU) is a Sublime-Text plugin that generate Github URL of the file you are on, from your editor and paste it to clipboard.
I want my editor to quickly generate the Github URL for me without jumping to the browser to yank the URL of file.
So I made this.
The easiest way to install this is with Package Control.
- If you just went and installed Package Control, you probably need to restart Sublime Text 2 before doing this next bit.
- Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
- Select "Package Control: Install Package" (it'll take a few seconds)
- Select GGU when the list appears.
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone git://github.com/kemayo/GGU-SL.git
$ cd ~/.config/sublime-text-2/Packages/
$ git clone git://github.com/kemayo/sublime-text-2-git.git Git
- Configure GGU:
Before you can start you need to edit ggu.sublime-setting.py.
-
Generate remote repo URL
-
Go to the file in a git repo.
-
press
ctrl + alt + r
-
Choose your remote repo.
-
Boom! you are free to paste the URL.
-
Quickly Generate URL -
-
Go to the file in a git repo.
-
press
ctrl + alt + g
-
Boom! you are free to paste the URL.
Note - This automatically detect your current branch you are working on
- You are free to change the key bindings.
Thats It!! Enjoy.