beyondgrep / ack3

ack is a grep-like search tool optimized for source code.
https://beyondgrep.com/
Other
708 stars 66 forks source link

Look for more files to ignore by default #233

Open petdance opened 5 years ago

petdance commented 5 years ago

Currently our --ignore-files are:

$ ack --dump | ack ignore-file
  --ignore-file=ext:bak
  --ignore-file=ext:gif,jpg,jpeg,png
  --ignore-file=ext:gz,tar,tgz,zip
  --ignore-file=ext:pdf
  --ignore-file=is:.git
  --ignore-file=match:/[.-]min[.]js$/
  --ignore-file=match:/[.]css[.]map$/
  --ignore-file=match:/[.]css[.]min$/
  --ignore-file=match:/[.]js[.]map$/
  --ignore-file=match:/[.]js[.]min$/
  --ignore-file=match:/[.]min[.]css$/
  --ignore-file=match:/[._].*\.swp$/
  --ignore-file=match:/^#.+#$/
  --ignore-file=match:/core\.\d+$/
  --ignore-file=match:/~$/
  --ignore-file=is:ack-standalone
  --ignore-file=is:tags

See if there are other binary files that we should also be ignoring.

rkta commented 5 years ago

Maybe you could add cscope's cscope.out (not sure if you could detect the file type independent from the name)?

Using ack with vim's quickfix list it is really annoying if you step accidentally into a several hundred MB cscope database.

petdance commented 5 years ago

I've made a new ticket #247 for cscope.out