vertico: use vertico-directory-tidy

cleans up shadowed paths automatically
This commit is contained in:
Itai Y. Efrat 2021-07-18 21:27:44 +03:00
parent d0f4c5f03c
commit 29bd530970
2 changed files with 4 additions and 1 deletions

View file

@ -111,6 +111,9 @@ org~ statement, but per minad every additional buffer source slows
~consult-buffer~ down, so it is worth consideration if this option is desired at
all. I haven't noticed a difference, but it might be noticible on slower
machines.
** TODO Should we use ~vertico-directory-delete-char~ instead of ~+vertico/backward-updir~
Pro: use builtin upstream thing
Con: lose ability to backspace through =~/=
* PROJ HACKs that need looking over
** TODO ~fboundp~ issues
@ -142,7 +145,6 @@ directly, but something deeper in the =:ui popup=
Check if there are other places where optimisations can be made. Perhaps the
~command-input-async~ variables can tolerate lower values.
** TODO Better Marginalia annotations for Projectile commands (maybe upstream)
** TODO after the next bump, replace ~+vertico/backward-updir~ with ~vertico-directory~ version
** TODO bump =bibtex-actions=
** TODO Fix the duplicate candidate issue
[[https://github.com/minad/vertico/issues/69][See here.]] If this doesn't get fixed upstream by the time of the merge we should

View file

@ -12,6 +12,7 @@
#'consult-completion-in-region
#'completion--in-region))))
:config
(add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy)
(map! :map vertico-map
[backspace] #'+vertico/backward-updir))