Change path separator on Windows when using fd

Show slash instead of backslash
This commit is contained in:
chuxubank 2020-05-12 15:32:37 +08:00
parent 272d8867af
commit 8a70dd0379
2 changed files with 6 additions and 5 deletions

View file

@ -265,9 +265,9 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
:override #'counsel--find-return-list
(cl-destructuring-bind (find-program . args)
(cond ((executable-find doom-projectile-fd-binary)
(cons doom-projectile-fd-binary
(list "--color=never" "-E" ".git"
"--type" "file" "--type" "symlink" "--follow")))
(append (list doom-projectile-fd-binary
"--color=never" "-E" ".git" "--type" "file" "--type" "symlink" "--follow")
(if IS-WINDOWS '("--path-separator=/"))))
((executable-find "rg")
(append (list "rg" "--files" "--follow" "--color=never" "--hidden" "--no-messages")
(cl-loop for dir in projectile-globally-ignored-directories