3 ms·
For ripgrep, you can achieve this via a custom ignore file, e.g., `echo '*.min.js' > .ignore`. Another approach I've seen people take is to put `-M300` in your
by burntsushi 8y ago
For ripgrep, you can achieve this via a custom ignore file, e.g., `echo '*.min.js' > .ignore`.
Another approach I've seen people take is to put `-M300` in your ripgrep config file, and then any super long lines are automatically omitted from output.
- JoshTriplett 8y agoHave you considered parsing .gitattributes and offering support for reducing files marked as "binary" down to a "binary file matches" notice?
- burntsushi 8y agoNope. I don't think I've ever used .gitattributes. Might be a neat idea. Not sure.
- h1d 8y agoI've seen the few posts deciding to use .ignore as the file name but I hope this won't be a mistake in choosing the right name without enough discussion. Even for users it's hard to figure what the file is for. I consider .grepignore to be more comprehensible.
- burntsushi 8y agoYou can also use .rgignore.