fix: strip './' from projectile file list produced by fd

Fix: #6504
Ref: bbatsov/projectile#1784
This commit is contained in:
Álan Crístoffer 2022-07-23 15:57:23 +02:00 committed by GitHub
parent acd7db1410
commit b636d9e793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ And if it's a function, evaluate it."
(cl-find-if (doom-rpartial #'executable-find t)
(list "fdfind" "fd"))
doom-projectile-fd-binary))
(concat (format "%s . -0 -H --color=never --type file --type symlink --follow --exclude .git"
(concat (format "%s . -0 -H --color=never --type file --type symlink --follow --exclude .git --strip-cwd-prefix"
bin)
(if IS-WINDOWS " --path-separator=/"))))
;; Otherwise, resort to ripgrep, which is also faster than find