mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #4180: omit .git from file searches
This commit is contained in:
@ -57,7 +57,7 @@ workspace."
|
||||
(helm-rg-default-extra-args
|
||||
(delq nil (append (list (when all-files "-z -uu")
|
||||
(unless recursive "--maxdepth 1")
|
||||
"--hidden")
|
||||
"--hidden" "-g" "!.git")
|
||||
args))))
|
||||
(setq deactivate-mark t)
|
||||
(helm-rg (or query
|
||||
|
@ -272,8 +272,8 @@ The point of this is to avoid Emacs locking up indexing massive file trees."
|
||||
(directory (or in project-root))
|
||||
(args (concat (if all-files " -uu")
|
||||
(unless recursive " --maxdepth 1")
|
||||
" --hidden"
|
||||
" " (mapconcat #'shell-quote-argument args " "))))
|
||||
" --hidden -g!.git "
|
||||
(mapconcat #'shell-quote-argument args " "))))
|
||||
(setq deactivate-mark t)
|
||||
(counsel-rg
|
||||
(or query
|
||||
|
Reference in New Issue
Block a user