tools/gist: open gists in non-popups
- Removes +gist/kill-cache (gist-list and gist-list-user with a universal argument already does this). - Removes +gist/open-current. No longer necessary when gists aren't opened in popups. - Makes keybinds more consistent with other "porcelains", like elfeed's or magit.
This commit is contained in:
parent
1f1e4d8d83
commit
3310f9dfe2
3 changed files with 6 additions and 21 deletions
|
@ -1,16 +0,0 @@
|
|||
;;; tools/gist/autoload/gist.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +gist/open-current ()
|
||||
(interactive)
|
||||
(gist-fetch-current)
|
||||
(when-let* ((win (get-buffer-window "*github:gists*")))
|
||||
(doom/popup-close win)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +gist/kill-cache ()
|
||||
"Clears the gist cache. Necessary when a faulty cache causes gist.el to be
|
||||
entirely unuseable."
|
||||
(interactive)
|
||||
(delete-directory (expand-file-name "gh" pcache-directory) t)
|
||||
(message "gist.el cache cleared"))
|
|
@ -7,6 +7,8 @@
|
|||
(after! gist
|
||||
(set-evil-initial-state! 'gist-list-mode 'normal)
|
||||
|
||||
(set-popup-rule! "^\\*gist-" :ignore t)
|
||||
|
||||
(defun +gist*list-render (orig-fn &rest args)
|
||||
(funcall orig-fn (car args) t)
|
||||
(unless (cadr args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue