Include .env in results #2428
-
Hello, I'd like to include my
Something like this?
I've spent some time in the docs, discussions and issues and can't find what I'm looking for. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Probably the simplest approach here is to do |
Beta Was this translation helpful? Give feedback.
-
I am a bit at a loss here. I can't really get un-ignoring to work when specifying an ignore file through the CLI. I feel I missing something stupid on my side, but I am not sure what it is. Here's my setup/project for an easy repro. ripgrep setupHere's my setup (dotfiles):
Sample project
Command
The output is as follows, note that
If I add Also, if I move the Debug outputHere's an excerpt from the debug output regarding the
|
Beta Was this translation helpful? Give feedback.
Probably the simplest approach here is to do
echo '!/.env' > .rgignore
, which whitelists it. But then it will appear in results even without--hidden
. But I think that's the best you can do. ripgrep is not arbitrarily flexible in this area.