From b636d9e793135c84db56d951b4b26246e9a8da7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lan=20Cr=C3=ADstoffer?= Date: Sat, 23 Jul 2022 15:57:23 +0200 Subject: [PATCH] fix: strip './' from projectile file list produced by fd Fix: #6504 Ref: bbatsov/projectile#1784 --- core/core-projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index 6eaa8a8bb..23d14df0d 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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