Skip to content

Feature request: being able to ignore .ignore files, but not .gitignore #1138

@JelteF

Description

@JelteF

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.

  1. Searching files for content.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAn issue that is lacking clarity on one or more points.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions