Permalink
Browse files

Option to limit available Gists to starred

  • Loading branch information...
1 parent 2a7bdea commit 9321b69c786df2076a35c09f0dcd877d79fdb785 @s2b committed Oct 17, 2012
Showing with 7 additions and 1 deletion.
  1. +4 −1 Gist.sublime-settings
  2. +3 −0 gist.py
View
@@ -17,7 +17,10 @@
"url": "",
// Max Gists to show (max 100 allowed by GitHub API)
- "max_gists": 100
+ "max_gists": 100,
+
+ // Only use starred gists
+ "use_starred": false
// Limit to gists with specific prefix
//"gist_prefix": "Snippet:"
View
@@ -28,6 +28,9 @@
#Per page support (max 100)
if settings.get('max_gists'):
+ if settings.get('use_starred'):
+ GISTS_URL += '/starred'
+
if settings.get('max_gists') <= 100:
GISTS_URL += '?per_page=%d' % settings.get('max_gists');
else:

0 comments on commit 9321b69

Please sign in to comment.