mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #3100 from chuxubank/develop
Change path separator on Windows when using fd
This commit is contained in:
@ -146,8 +146,9 @@ c) are not valid projectile projects."
|
|||||||
;; that is significantly faster than git ls-files or find, and it respects
|
;; that is significantly faster than git ls-files or find, and it respects
|
||||||
;; .gitignore. This is recommended in the projectile docs.
|
;; .gitignore. This is recommended in the projectile docs.
|
||||||
((executable-find doom-projectile-fd-binary)
|
((executable-find doom-projectile-fd-binary)
|
||||||
(setq projectile-generic-command
|
(setq projectile-generic-command
|
||||||
(format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
|
(concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
|
||||||
|
doom-projectile-fd-binary)
|
||||||
(if IS-WINDOWS " --path-separator=/"))
|
(if IS-WINDOWS " --path-separator=/"))
|
||||||
projectile-git-command projectile-generic-command
|
projectile-git-command projectile-generic-command
|
||||||
projectile-git-submodule-command nil
|
projectile-git-submodule-command nil
|
||||||
|
@ -265,9 +265,9 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
|||||||
: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 doom-projectile-fd-binary)
|
(cond ((executable-find doom-projectile-fd-binary)
|
||||||
(cons doom-projectile-fd-binary
|
(append (list doom-projectile-fd-binary
|
||||||
(list "--color=never" "-E" ".git"
|
"--color=never" "-E" ".git" "--type" "file" "--type" "symlink" "--follow")
|
||||||
"--type" "file" "--type" "symlink" "--follow")))
|
(if IS-WINDOWS '("--path-separator=/"))))
|
||||||
((executable-find "rg")
|
((executable-find "rg")
|
||||||
(append (list "rg" "--files" "--follow" "--color=never" "--hidden" "--no-messages")
|
(append (list "rg" "--files" "--follow" "--color=never" "--hidden" "--no-messages")
|
||||||
(cl-loop for dir in projectile-globally-ignored-directories
|
(cl-loop for dir in projectile-globally-ignored-directories
|
||||||
|
Reference in New Issue
Block a user