deadgrep
deadgrep copied to clipboard
Add the availability for search in ignored files (defaults to false)
It's often useful to search in vendors or ignored files.
This new button allows toggling if the search should search in ignored files.
FYI, I'm kind of new in writing lisp, I'll take any advice
@mtarld i had a similar problem (wanting the --hidden option for the rg searches) - the recommended approach (which works perfectly for me) from the author himself is here in issue 24 basically use advice:
(defun deadgrep--include-args (rg-args)
(push "--hidden" rg-args) ;; consider hidden folders/files
(push "--follow" rg-args) ;; follow symlink
)
(advice-add 'deadgrep--arguments :filter-return #'deadgrep--include-args)
Indeed, I wasn't aware of that workaround, I'll close it then, thanks!
I think this PR is still needed if you want the --no-ignore option on a per-search basis (i.e. not permanently unlike the advice-add)