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
I would like to have a flag that allows ignoring of .ignore files, but still ignore the files in .gitignore. The reason for me is that I have two main uses for rg.
Searching files for content.
Very quickly creating a list of all files in the current directory that I might want to open. I pass the output of rg --files --hidden --ignore-file ~/.vim/fzf_ignore to to FZF in vim. This allows me to fuzzy search all the file names in the current repo that are not ignored by git. ~/.vim/fzf_ignore contains a file with stuff like .git/ and .svn/.
The problem I keep running into is that I add some files to the .ignore file that I don't want to search. But then I also cannot open them with the fuzzy search anymore. The reason I add them to .ignore is because they are big files that will often match my search, such as csv files, a dev database dump or a vendored minified js file.
The addition of a --no-ignore-dot-ignore flag would solve this problem for me.
The text was updated successfully, but these errors were encountered:
I think that the various "no ignore" flags are already too complex. We might be doomed to support every possible combination, but I'd like to resist doing that for the time being. Meanwhile, would you consider using fd instead for listing files? fd is, after all, designed for listing files.
Yeah using fd would make sense indeed, but it has even less flags to change the behaviour. One other way that would work for me is to do make the following work:
What version of ripgrep are you using?
ripgrep 0.10.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
How did you install ripgrep?
pacman
What operating system are you using ripgrep on?
Arch linux
Describe your question, feature request, or bug.
I would like to have a flag that allows ignoring of .ignore files, but still ignore the files in .gitignore. The reason for me is that I have two main uses for
rg
.rg --files --hidden --ignore-file ~/.vim/fzf_ignore
to to FZF in vim. This allows me to fuzzy search all the file names in the current repo that are not ignored by git.~/.vim/fzf_ignore
contains a file with stuff like.git/
and.svn/
.The problem I keep running into is that I add some files to the .ignore file that I don't want to search. But then I also cannot open them with the fuzzy search anymore. The reason I add them to .ignore is because they are big files that will often match my search, such as csv files, a dev database dump or a vendored minified js file.
The addition of a
--no-ignore-dot-ignore
flag would solve this problem for me.The text was updated successfully, but these errors were encountered: