diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-01 15:50:01 -0500 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-01 15:50:39 -0500 |
commit | 5160dc0f7cfb99b5bdb746622f38515b5af5fe27 (patch) | |
tree | 18f4aa530360cea56f87df42b8cebff71998baf3 | |
parent | d171c747da570e85a9e4e6e2c8a4dec3e7b4a3ac (diff) |
Add: vertico-directory config
to help emulate the behavior i got used to in Ivy
-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 |