From 5160dc0f7cfb99b5bdb746622f38515b5af5fe27 Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Fri, 1 Jul 2022 15:50:01 -0500 Subject: Add: vertico-directory config to help emulate the behavior i got used to in Ivy --- shoshin-config.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'shoshin-config.org') 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 -- cgit v1.2.3