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:
parent
25a89491a3
commit
76f309ceb5
1 changed files with 4 additions and 1 deletions
|
@ -149,7 +149,10 @@ orderless."
|
|||
(if doom-projectile-fd-binary
|
||||
(setq consult-fd-args
|
||||
'(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=/"))))
|
||||
|
||||
(consult-customize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue