refactor(vertico): file completion backspace
Switch from the homemade +vertico/backward-updir to the upstream vertico-directory-delete-char. The former has the nice feature of traversing up abbreviated paths, but this comes at the cost of not being able to fully erase the path (since the buck stops at /), and unintentional directory moving in commands such as +vertico/find-file-in which causes issues. Overall this minor convenience is not worth it, so the vertico-directory-delete-char behaviour of just deleting up to the previous / is preferred instead.
This commit is contained in:
parent
161d48c2a9
commit
9241a4d709
2 changed files with 1 additions and 18 deletions
|
@ -26,7 +26,7 @@ overrides `completion-styles' during company completion sessions.")
|
|||
;; Cleans up path when moving directories with shadowed paths syntax, e.g.
|
||||
;; cleans ~/foo/bar/// to /, and ~/foo/bar/~/ to ~/.
|
||||
(add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy)
|
||||
(map! :map vertico-map [backspace] #'+vertico/backward-updir))
|
||||
(map! :map vertico-map [backspace] #'vertico-directory-delete-char))
|
||||
|
||||
|
||||
(use-package! orderless
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue