Skip to content

Ggrep ignore binary files #2438

@eloyesp

Description

@eloyesp

I'm getting too many matches on git grep on binary files, that I would like to exclude by default when using :Ggrep. I've found that there is a flag for this: git grep -I pattern (here).

The problem is that there is no config available to make that the default so it need to be added each time. It is well supported on vim-fugitive when typed: :Ggrep -I pattern works as expected, but I found no way to make it the default behavior.

I'm not sure if it should be a default, or may be there should be an option to do this.

As far as I understand, the trick would be to read a config here and add an argument if needed.

On the other hand, may be there is a simple way to make :Ggrep pattern execute :Ggrep -I pattern instead with a simple vim config that I'm not aware of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions