deadgrep icon indicating copy to clipboard operation
deadgrep copied to clipboard

Add the availability for search in ignored files (defaults to false)

Open mtarld opened this issue 4 years ago • 1 comments

It's often useful to search in vendors or ignored files.

This new button allows toggling if the search should search in ignored files.

mtarld avatar Apr 15 '21 10:04 mtarld

FYI, I'm kind of new in writing lisp, I'll take any advice

mtarld avatar Apr 15 '21 10:04 mtarld

@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)

PalaceChan avatar May 07 '23 23:05 PalaceChan

Indeed, I wasn't aware of that workaround, I'll close it then, thanks!

mtarld avatar May 11 '23 06:05 mtarld

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)

max-arnold avatar Dec 03 '23 17:12 max-arnold