Permalink
Browse files

allow the user to make a public gist, if defaulting to private

  • Loading branch information...
1 parent 5a8d0a6 commit f984976f0744314b29224a20944d019bf0a46003 @AD7six AD7six committed Apr 16, 2011
Showing with 10 additions and 0 deletions.
  1. +5 −0 README.mkd
  2. +5 −0 plugin/gist.vim
View
@@ -18,6 +18,11 @@ Usage:
post whole text to gist as private.
if you got empty gist list, try :Gist --abandon
+ :Gist -P
+ post whole text to gist as public
+ This is only relevant if you've set gists to be private by default
+ if you got empty gist list, try :Gist --abandon
+
:Gist -a
post whole text to gist as anonymous.
View
@@ -19,6 +19,9 @@
" post whole text to gist with private.
" if you got empty gist list, try :Gist --abandon
"
+" :Gist -P
+" post whole text to gist as public
+" This is only relevant if you've set gists to be private by default
" :Gist -a
" post whole text to gist with anonymous.
"
@@ -700,6 +703,8 @@ function! Gist(line1, line2, ...)
let multibuffer = 1
elseif arg =~ '^\(-p\|--private\)$'
let private = 1
+ elseif arg =~ '^\(-P\|--public\)$'
+ let private = 0
elseif arg =~ '^\(-a\|--anonymous\)$'
let user = ''
let token = ''

0 comments on commit f984976

Please sign in to comment.