Merge pull request #2501 from yoavm448/also_fdfind
Also look for 'fdfind' executable
This commit is contained in:
commit
dc69e61210
1 changed files with 3 additions and 3 deletions
|
@ -264,8 +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."
|
||||
:override #'counsel--find-return-list
|
||||
(cl-destructuring-bind (find-program . args)
|
||||
(cond ((executable-find "fd")
|
||||
(cons "fd" (list "-t" "f" "-E" ".git")))
|
||||
(cond ((executable-find doom-projectile-fd-binary)
|
||||
(cons doom-projectile-fd-binary (list "-t" "f" "-E" ".git")))
|
||||
((executable-find "rg")
|
||||
(cons "rg" (list "--files" "--hidden" "--no-messages")))
|
||||
((cons find-program args)))
|
||||
|
@ -275,7 +275,7 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||
(cons find-program args)
|
||||
(lambda ()
|
||||
(goto-char (point-min))
|
||||
(let ((offset (if (member find-program '("fd" "rg")) 0 2))
|
||||
(let ((offset (if (member find-program (list "rg" doom-projectile-fd-binary)) 0 2))
|
||||
files)
|
||||
(while (< (point) (point-max))
|
||||
(push (buffer-substring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue