This is a plugin for the Sublime Text 2 text editor that allows you to create public or private Github Gists from the currently selected text.
cd ~/"Library/Application Support/Sublime Text 2/Packages/"
git clone https://github.com/bgreenlee/sublime-github.git
The plugin should be picked up automatically. If not, restart Sublime Text.
First, your Github username and API token needs to be set. See http://help.github.com/set-your-user-name-email-and-github-token/ to see how to do this. Then:
- Select some text.
- Bring up the Command Palette (⇧⌘P by default)
- Start typing "Github", and select either "Private Gist from Selection" or "Public Gist from Selection"
- At the bottom of your editor, you'll be prompted for a description. After entering that, you'll be prompted for a filename.
- The url for your new gist will be copied to the clipboard.
http://github.com/bgreenlee/sublime-github/issues
Copyright © 2011 Brad Greenlee. See LICENSE for details.