vim-easygrep icon indicating copy to clipboard operation
vim-easygrep copied to clipboard

Option to exclude binary files

Open jpmv27 opened this issue 9 years ago • 1 comments

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?

jpmv27 avatar Sep 29 '16 17:09 jpmv27

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!

dkprice avatar Oct 05 '16 04:10 dkprice