dkprice / vim-easygrep

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

Option to exclude binary files #48

Open jpmv27 opened 8 years ago

jpmv27 commented 8 years ago

I am thinking of adding a new option to exclude binary files, corresponding to the GNU grep '-I' (capital i) option.

Any interest in this?

dkprice commented 8 years ago

I think it's a good idea. There is also tool support for searching/skipping binary in ag, sift, and ripgrep and as such I think it's a relevant option.

I think we'd want to parameterize the dictionaries that get passed to RegisterGrepProgram with opt_str_searchbinary and opt_str_nosearchbinary given that some commands have a positive option for binary and others have a negative option.

I think that the switch would be driven by an option called g:EasyGrepSearchBinary

I'd certainly appreciate a contribution that adds this. Thanks!