mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
tweak(vertico): show entire path for fd results
Currently, fd does not expose a way to match against only the path components beneath the target path. When --full-path is specified, the pattern matches against all components. For example, executing consult-fd from /home/hlissner/.emacs.d with `home` as the query would match every file (not excluded by other arguments) under .emacs.d. Despite this --full-path behavior, fd still outputs relative paths, so the user cannot even determine why some candidates are returned. Until there is a method to match only against subdirectories, use --absolute-path to at least to show the user why all matches are occurring. Ref: https://github.com/sharkdp/fd/issues/839
This commit is contained in:
committed by
Itai Y. Efrat
parent
25a89491a3
commit
76f309ceb5
@@ -149,7 +149,10 @@ orderless."
|
|||||||
(if doom-projectile-fd-binary
|
(if doom-projectile-fd-binary
|
||||||
(setq consult-fd-args
|
(setq consult-fd-args
|
||||||
'(doom-projectile-fd-binary
|
'(doom-projectile-fd-binary
|
||||||
"--full-path --color=never -H -E .git"
|
"--color=never"
|
||||||
|
;; https://github.com/sharkdp/fd/issues/839
|
||||||
|
"--full-path --absolute-path"
|
||||||
|
"--hidden --exclude .git"
|
||||||
(when IS-WINDOWS "--path-separator=/"))))
|
(when IS-WINDOWS "--path-separator=/"))))
|
||||||
|
|
||||||
(consult-customize
|
(consult-customize
|
||||||
|
Reference in New Issue
Block a user