-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hidden files to be searched by default #623
Comments
Excluding hidden/dot files by default is common for this class of tool — notably, If you've read that other ticket you've probably already picked this up, but just in case, this is your best work-around for now:
|
@okdana has got it. This isn't changing. |
The following is @okdana's solution, but with the .git folder remaining ignored:
|
More and more, I've been finding this not to be the case anymore. I've broken pipelines over this default. Not ripgrep's fault, I should read the docs, but it's still evidence against this argument. In any case, using |
I don't know what you mean exactly by broken pipelines, but I haven't budged on this personally. In any case, ripgrep's "smart" filtering defaults are really a part of its identity at this point. |
CI pipelines. Those based on GitHub Actions are normally kept at I'm not really trying to change your mind, you seem pretty resolute. I'm just bringing evidence forward. |
I agree with @pkgw here and I use that alias As you said, not all dot files are created equal. Almost nobody wants to search on cache files but almost for sure they want to search inside hidden config files. Even the default user config folder based on XDG standard is I do hope that @BurntSushi will reconsider his opinion on that default because we cannot really deploy our ripgrep config on each machine we use it. I think that the tricky bit about implementing this feature is that it should also include an implicit Interestingly I do not see any downvote on the proposal, only 10 upvotes. Still the number is likely too small to be considered as a real survey. |
Ops, I see that I filed the issue :) My suggestion is that at least under Git repositories to search in hidden files, because caches and other temporary files will be in |
No, the default is never changing. I don't practice upvote driven development. If you can deploy ripgrep then you should be able to also deploy aliases/ignores/configs. The defaults are not perfect all the time. That's why the tool is configurable. The defaults are just an approximation. It is also important for defaults to be simple. "Skip all hidden files" is simpler than "skip all hidden files except foo, bar and baz." |
@BurntSushi , how a about a new feature to skip only files ignored by the CMS system at use (git, etc.), and search in everything else? |
@akostadinov That's what |
@BurntSushi , I mean some feature to automatically detect whether it is run in a SCM repo or not. Or a feature to read a configuration file from within a repo when such one is present. e.g. (in a similar way how Would some of the above suggestions be acceptable? |
Also probably not happening. Others have requested it. Search the tracker. I'm on mobile. Just setup your ignore files. You should be able to whitelist hidden files or directories. |
Have `rg` search inside hidden files excluding `.git`, cf BurntSushi/ripgrep#623 (comment)
Personally I would never complain if the Github Actions wasn't invented as being put into |
@Nakilon Sorry, what's the point of your comment? Just to complain? Why not put |
Can't figure out how this autofiltering thing works. I have
but
Why doesn't it ignore the file? |
Please open a new Discussion question instead of posting in some old issue that may or may not be related. Please also include a full reproduction that others can try. Please also read the guide. For example, why haven't you tried using the |
I also ran into the same problem today when the |
I guess I need to start locking issue threads now. |
Am I the only one that thinks hidden files should be searched by default? Especially when trying to find something related to configuration, these things are often put into hidden files in user home.
And if I'm the only one, probably #196 is what can help me.
The text was updated successfully, but these errors were encountered: