dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 47 forks source link

Default result filters #18

Closed noscript closed 9 years ago

noscript commented 9 years ago

I would like to filter out binary files from results. Currently I use ResultListFilter -v Binary file but that has to be manually run after every <leader>vv, :Grep and others. Would it be possible to add an option to define default filters?

dkprice commented 9 years ago

You have a couple of options here. If you are using vimgrep, you can use EasyGrepFilesToExclude to exclude them. EasyGrep also supports other grep programs that will skip over binary files by default; you might be interested in ack, ag, or pt.

noscript commented 9 years ago

Indeed, I totally forgot that the standalone tools have options to ignore binary files.