mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Use doom-projectile-fd-binary for fd binary
Don't look for it again
This commit is contained in:
@ -264,10 +264,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||||||
"Change `counsel-file-jump' to use fd or ripgrep, if they are available."
|
"Change `counsel-file-jump' to use fd or ripgrep, if they are available."
|
||||||
:override #'counsel--find-return-list
|
:override #'counsel--find-return-list
|
||||||
(cl-destructuring-bind (find-program . args)
|
(cl-destructuring-bind (find-program . args)
|
||||||
(cond ((executable-find "fd")
|
(cond ((executable-find doom-projectile-fd-binary)
|
||||||
(cons "fd" (list "-t" "f" "-E" ".git")))
|
(cons doom-projectile-fd-binary (list "-t" "f" "-E" ".git")))
|
||||||
((executable-find "fdfind")
|
|
||||||
(cons "fdfind" (list "-t" "f" "-E" ".git")))
|
|
||||||
((executable-find "rg")
|
((executable-find "rg")
|
||||||
(cons "rg" (list "--files" "--hidden" "--no-messages")))
|
(cons "rg" (list "--files" "--hidden" "--no-messages")))
|
||||||
((cons find-program args)))
|
((cons find-program args)))
|
||||||
@ -277,7 +275,7 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||||||
(cons find-program args)
|
(cons find-program args)
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(let ((offset (if (member find-program '("fd" "fdfind" "rg")) 0 2))
|
(let ((offset (if (member find-program (list "rg" doom-projectile-fd-binary)) 0 2))
|
||||||
files)
|
files)
|
||||||
(while (< (point) (point-max))
|
(while (< (point) (point-max))
|
||||||
(push (buffer-substring
|
(push (buffer-substring
|
||||||
|
Reference in New Issue
Block a user