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'."
608
608
(define-key map " *" 'gist-star )
609
609
(define-key map " ^" 'gist-unstar )
610
610
(define-key map " f" 'gist-fork )
611
+ (define-key map " /p" 'gist-list-push-visibility-limit )
611
612
(define-key map " /w" 'gist-list-pop-limit )
612
613
map))
613
614
@@ -632,6 +633,15 @@ put it into `kill-ring'."
632
633
(pop gist-list-limits))
633
634
(gist-list-user 'current-user ))
634
635
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
+
635
645
(defun gist-list-apply-limits (gists )
636
646
(condition-case nil
637
647
(delete nil
You can’t perform that action at this time.
0 commit comments