Omit .git from projectile-find-file & ocunsel-file-jump
This commit is contained in:
parent
51744ce294
commit
db66b8af31
2 changed files with 3 additions and 5 deletions
|
@ -180,7 +180,7 @@ And if it's a function, evaluate it."
|
||||||
(if IS-WINDOWS " --path-separator=/"))))
|
(if IS-WINDOWS " --path-separator=/"))))
|
||||||
;; Otherwise, resort to ripgrep, which is also faster than find
|
;; Otherwise, resort to ripgrep, which is also faster than find
|
||||||
((executable-find "rg" t)
|
((executable-find "rg" t)
|
||||||
(concat "rg -0 --files --follow --color=never --hidden"
|
(concat "rg -0 --files --follow --color=never --hidden -g!.git"
|
||||||
(if IS-WINDOWS " --path-separator /")))
|
(if IS-WINDOWS " --path-separator /")))
|
||||||
("find . -type f -print0"))))
|
("find . -type f -print0"))))
|
||||||
|
|
||||||
|
|
|
@ -282,12 +282,10 @@ 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 ((when-let (fd (executable-find (or doom-projectile-fd-binary "fd")))
|
(cond ((when-let (fd (executable-find (or doom-projectile-fd-binary "fd")))
|
||||||
(append (list fd
|
(append (list fd "-H" "--color=never" "--type" "file" "--type" "symlink" "--follow")
|
||||||
"--color=never" "-E" ".git"
|
|
||||||
"--type" "file" "--type" "symlink" "--follow")
|
|
||||||
(if IS-WINDOWS '("--path-separator=/")))))
|
(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" "-g!.git" "--no-messages")
|
||||||
(cl-loop for dir in projectile-globally-ignored-directories
|
(cl-loop for dir in projectile-globally-ignored-directories
|
||||||
collect "--glob"
|
collect "--glob"
|
||||||
collect (concat "!" dir))
|
collect (concat "!" dir))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue