diff options
-rw-r--r-- | shoshin-config.el | 6 | ||||
-rw-r--r-- | shoshin-config.org | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/shoshin-config.el b/shoshin-config.el index 6f65e7b..f98284b 100644 --- a/shoshin-config.el +++ b/shoshin-config.el @@ -53,6 +53,12 @@ (setq enable-recursive-minibuffers t) (vertico-mode) +(require 'vertico-directory) +(define-key (kbd "RET") #'vertico-directory-enter) +(define-key (kbd "DEL") #'vertico-directory-delete-char) +(define-key (kbd "M-DEL") #'vertico-directory-delete-word) +(define-key (kbd "M-j") #'vertico-quick-insert) + (package-install 'which-key) (which-key-mode) diff --git a/shoshin-config.org b/shoshin-config.org index e8fb9b6..deab2a5 100644 --- a/shoshin-config.org +++ b/shoshin-config.org @@ -311,6 +311,22 @@ the new. it seems like consult does this as well as switching themes (vertico-mode) #+end_src +*** vertico-directory + +i'd like to emulate the behavior in ~find-file~ that i'm used to from Ivy. +basically, when i press DEL it should act normally until i hit a directory +boundary, then it should jump up a dir with the following press. + +this is implemented with the ~vertico-directory~ extension. + +#+begin_src emacs-lisp + (require 'vertico-directory) + (define-key (kbd "RET") #'vertico-directory-enter) + (define-key (kbd "DEL") #'vertico-directory-delete-char) + (define-key (kbd "M-DEL") #'vertico-directory-delete-word) + (define-key (kbd "M-j") #'vertico-quick-insert) +#+end_src + ** which-key #+begin_src emacs-lisp |