You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only after I finished typing in full a feature request (preserved below) did I find out about .ignore files by reading other issues suggested by GitHub.
To be fair, rg --help does mention .ignore multiple times.
Since that name is hard to look up in a search engine, I’m not sure what other tools also consider .ignore by default and whether I wouldn’t want that for some use cases. What other tools do you know of that do?
What do you think could be ways to more prominently document .ignore?
Some code repositories contain generated files (with long lines) that should be excluded from being searched by ripgrep. Currently this can be done by adding a pattern to .gitignore, but this of course also makes the files ignored by git.
It would be nice to have a file, possibly named .rgignore, that lists patterns to be ignored by ripgrep but not by version control systems.
If this is a bug, what are the steps to reproduce the behavior?
git clone https://github.com/rust-lang/rust
cd rust
rg ptr::NonNull
If this is a bug, what is the actual behavior?
The console is flooded with the entire contents of src/tools/rls/rls-analysis/test_data/rust-analysis/libcore-a5db6a3445116c08.json, which is a 3 MB single-line JSON file.
If this is a bug, what is the expected behavior?
The repository maintainers should have a way to specify that ``src/tools/rls/rls-analysis/test_data/rust-analysis/*.json` should be excluded from ripgrep results by default.
The text was updated successfully, but these errors were encountered:
BurntSushi
added
question
An issue that is lacking clarity on one or more points.
doc
An issue with or an improvement to documentation.
labels
May 24, 2019
Only after I finished typing in full a feature request (preserved below) did I find out about
.ignore
files by reading other issues suggested by GitHub..gitignore
and theignore
crate.ignore
exactly oncerg --help
does mention.ignore
multiple times.Since that name is hard to look up in a search engine, I’m not sure what other tools also consider
.ignore
by default and whether I wouldn’t want that for some use cases. What other tools do you know of that do?What do you think could be ways to more prominently document
.ignore
?Feature request for
.rgignore
What version of ripgrep are you using?
How did you install ripgrep?
cargo install
What operating system are you using ripgrep on?
Ubuntu 18.04
Describe your question, feature request, or bug.
Some code repositories contain generated files (with long lines) that should be excluded from being searched by ripgrep. Currently this can be done by adding a pattern to
.gitignore
, but this of course also makes the files ignored by git.It would be nice to have a file, possibly named
.rgignore
, that lists patterns to be ignored by ripgrep but not by version control systems.If this is a bug, what are the steps to reproduce the behavior?
If this is a bug, what is the actual behavior?
The console is flooded with the entire contents of
src/tools/rls/rls-analysis/test_data/rust-analysis/libcore-a5db6a3445116c08.json
, which is a 3 MB single-line JSON file.If this is a bug, what is the expected behavior?
The repository maintainers should have a way to specify that ``src/tools/rls/rls-analysis/test_data/rust-analysis/*.json` should be excluded from ripgrep results by default.
The text was updated successfully, but these errors were encountered: