-
Notifications
You must be signed in to change notification settings - Fork 8
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
Respect gitignore rules in git repositories, ala ripgrep #42
Comments
Hello there. Gemini? You're in the wrong neighbourhood. 😆 I really love ripgrep and I understand the temptation to follow the similar behaviour. However I think that both tools are used in different circumstances, with different frequency and different usage pattern. You'll usually use ripgrep tens or hundreds of times daily:
It absolutely makes sense to make it as convenient as possible. However not all grep-like tools support that, notable exception being ack: https://beyondgrep.com/feature-comparison/ On the other hand (to my knowledge) formatter is used typically like so:
I rather don't intend to support ignoring files in any way because user can always provide much more precise ignoring themself. Also even if I was somewhat convinced that it's worth the time then I'd like to support popular version control systems equally, to avoid taking favourites. This would lead me to finding library that parses those ignore files correctly and that thing I'd also like to avoid. Fewer dependencies the better. Just recently I got rid of dependency because it became problematic in some environments. All that being said I won't leave you without a hint. Or a couple of hints actually. I'll go through 4 known to me solutions to your problem, each with its own caveats:
Before we go with pull requests let's weigh pros and cons of supporting that feature. I assume no ill will but whatever extra feature is added to the project it might become my maintenance burden. Since I'm quite lazy person I will avoid that as long as reasonable. :) |
Sorry about the typo :P I empathize with your general desire to minimize features and dependencies. Your outlined workarounds are solid. Thanks for the detailed response! |
I've pinned this issue for reference so that alternatives are easily accessible. In case I stumble upon new alternative I'll post it here. |
Thanks so much for creating
gemini
!It works great, except it tries to format and prints warnings about 3rd-party CMake files pulled into my build tree (which is a sub directory of my source tree) by
vcpkg
when I run it likegemini -i --definitions stuff... -- .
.I'd also be happy to have a crack at making a PR for this myself.
The text was updated successfully, but these errors were encountered: