-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Feature request: being able to ignore .ignore files, but not .gitignore #1138
Copy link
Copy link
Closed
Labels
questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.
Description
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.
- 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_ignoreto 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_ignorecontains 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.