refactor(pass): separate popup rule from pass-view
This commit is contained in:
parent
2121324a54
commit
6d9e142cc0
1 changed files with 5 additions and 3 deletions
|
|
@ -2769,9 +2769,11 @@ When visiting a password file, the file's buffer replaces the pass buffer, which
|
|||
(el-patch-let (($file (concat (f-join (password-store-dir) entry) ".gpg")))
|
||||
(el-patch-swap
|
||||
(find-file $file)
|
||||
(pop-to-buffer
|
||||
(find-file-noselect $file)
|
||||
(cdr (+popup-make-rule nil '(:side bottom :size 8 :quit t :modeline t))))))))
|
||||
(pop-to-buffer (find-file-noselect $file))))))
|
||||
|
||||
;; The popup rule indirectly triggered by above
|
||||
(set-popup-rule! '(derived-mode . pass-view-mode)
|
||||
:side 'bottom :size 8 :quit t :modeline t)
|
||||
#+end_src
|
||||
|
||||
* Org
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue