Revert "cp-rg: search globally unignored files and dirs"
This reverts commit 1e015c5378.
This commit is contained in:
parent
1e015c5378
commit
acc0290de7
1 changed files with 2 additions and 9 deletions
|
|
@ -769,14 +769,7 @@ OPTIONS, if non-nil, is a string containing additional options to
|
|||
be passed to rg. It is read from the minibuffer if the function
|
||||
is called with a prefix argument."
|
||||
(interactive)
|
||||
(let* ((unignored (mapconcat (lambda (i)
|
||||
(concat "--glob "
|
||||
(shell-quote-argument i)
|
||||
" "))
|
||||
(append (projectile-unignored-files-rel)
|
||||
(projectile-unignored-directories-rel))
|
||||
""))
|
||||
(ignored (mapconcat (lambda (i)
|
||||
(let* ((ignored (mapconcat (lambda (i)
|
||||
(concat "--glob "
|
||||
(shell-quote-argument (concat "!" i))
|
||||
" "))
|
||||
|
|
@ -788,7 +781,7 @@ is called with a prefix argument."
|
|||
(read-string (projectile-prepend-project-name "rg options: ")
|
||||
ignored
|
||||
'counsel-projectile-rg-options-history)
|
||||
(concat unignored ignored options))))
|
||||
(concat ignored options))))
|
||||
(counsel-rg (eval counsel-projectile-rg-initial-input)
|
||||
(projectile-project-root)
|
||||
options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue