HaoGist
Sublime Gist Plugin
Details
Installs
- Total 2K
- Win 791
- Mac 472
- Linux 262
Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Gist Plugin for Sublime Text
As you know, there already has a sublime gist plugin, however, there is no cache handler and it seems the author already stop to develop on it, so I decide to develop this gist plugin.
Installation
This plugin is hosted on package control
You should upgrade package control to v3.0, because just v3.0 support dependencies.json feature, if you didn't do it, plugin will use the build-in requests.
Change Logs:
Configuration
After plugin is installed, you must set your gist token, you can open this settings file by entering
HaoGist: Settings User
in the command palette.User setting sample:
{
// OSX workspace is different with windows,
// In OSX, workspace should be:
// "/Users/<UserName>/workspace/gist-workspace"
// If workspace is empty, it will be set as {packages_path}/User/HaoGist
"workspace": "c:/workspace/gist-workspace",
"token": ""
}
How to open command palette?
- Via menu item in
Tools > Command Palette
- Via press
ctrl+shift+p
in windows orcommand+shift+p
in osx
How to get gist token?
web
- Via Web
- Paste the token in the settings section under the token option.
API
Here's a command you can run from your terminal to generate a token via curl:
curl -i -u USERNAME https://api.github.com/authorizations --data '{"scopes":["gist"],"note":"SublimeText HaoGist plugin"}'
Where USERNAME
is your Github username. Save the token generated and paste it in the settings section under the token option.
If OTP is enabled on your account, this will return 401 error code, use:
curl -i -u USERNAME -H "X-GitHub-OTP: OTPCODE" https://api.github.com/authorizations --data '{"scopes":["gist"],"note":"SublimeText 2/3 Gist plugin"}'
Where OTPCODE
is the code your authenticator app shows you.
How to use this plugin to CRUD on gist:
Command Palette
- Input
HaoGist:
in command palette, you will see gist commands- choose_gist
- open_gist
- delete_exist_gist
- open_gist_in_browser
- update_content_to_gist
- add_file_to_gist
- delete_file_from_gist
- create_gist
- rename_gist
- update_gist_description
- update_gist
- refresh_gist
- delete_gist
- clear_gist_cache
- open_current_gist_in_browser
- release_note
- about_hao_gist
Context Menu
Open your context menu in any open view, you will see the commands of this plugin