File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,7 @@ put it into `kill-ring'."
608608 (define-key map " *" 'gist-star )
609609 (define-key map " ^" 'gist-unstar )
610610 (define-key map " f" 'gist-fork )
611+ (define-key map " /p" 'gist-list-push-visibility-limit )
611612 (define-key map " /w" 'gist-list-pop-limit )
612613 map))
613614
@@ -632,6 +633,15 @@ put it into `kill-ring'."
632633 (pop gist-list-limits))
633634 (gist-list-user 'current-user ))
634635
636+ (defun gist-list-push-visibility-limit (&optional private )
637+ (interactive " P" )
638+ (push (apply-partially (lambda (flag g )
639+ (or (and flag (not (oref g :public )))
640+ (and (not flag) (oref g :public ))))
641+ private)
642+ gist-list-limits)
643+ (gist-list-user 'current-user ))
644+
635645(defun gist-list-apply-limits (gists )
636646 (condition-case nil
637647 (delete nil
You can’t perform that action at this time.
0 commit comments