-
Notifications
You must be signed in to change notification settings - Fork 154
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
git grep
is preferred over rg
but is massively deficient
#448
Comments
I've got the same issue as well. If I add |
Same here, it just don't work at all unless set force searcher, tested on python and golang. |
Duplicate of #428 |
I don't consider this a duplicate. Part of the problem, not addressed in the other issue, is ignoring my preference and choosing git grep over my settings. |
Since this project doesn't seem to be maintained these days, I'm experimenting with a fork I'm making called |
This is the solution if The reason preferred (more like fallback) doesn’t work is because This should actually default to just No great solution in my mind. If someone wants to make a fork then that’s certainly fine with me. |
@zenspider , I must admit I don't understand the problem either. The code has the |
There's a 2 year old bug open on this project explaining how git grep hasn't worked for some time... so I don't feel terribly motivated to explain how the preferences are broken. The short version: "The preferred searcher to use 'ag, 'rg, 'git-grep, 'gnu-grep,or 'grep.
If nil then the most optimal searcher will be chosen at runtime." there shouldn't be 2 settings for what searcher you prefer. Nevermind the fact that from the readme:
So much for that. Since it seems obvious to me that the maintainer has no intention of addressing these deficiencies, I'm going to focus on cleaning up my fork and getting it published. @jacktasia feel free to close this issue as you see fit. |
Took me long enough, but I have published zenspider/dumber-jump, now on melpa. It has sensible defaults that have allowed me to get rid of all my dumb-jump customization that I needed to work. |
Without any config, if any project I use that is backed by git, then dumb-jump prefers to use
git grep
to find definitions viadumb-jump-pick-grep-variant
. The problem, in C or ruby or anything else I've tried, is that it doesn't find ANYTHING... 0% hit rate. If I set'(dumb-jump-force-searcher 'rg)
then everything works well. I don't know ifgit grep
regexps are deficient or broken because I find dumb-jump hard to navigate but the problem certainly lies with the searcher. For some reason I can't figure out, it choosesgit-grep
overdumb-jump-prefer-searcher
, so I'm not sure what theprefer
vsforce
distinction is for.I would also suggest that rg be preferred over ag.
The text was updated successfully, but these errors were encountered: