-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
rg --vimgrep shows multiple lines #293
Comments
This is
helm-ag expects search program(
|
@syohex Thanks for the explanation of why you're setting |
This also adds a reference to emacsorphanage#293 to explain the reason for using --vimgrep with ag on Windows.
See conversation with @mijoharas at syl20bnr#7370 (comment) and following conversation with @syohex at emacsorphanage/helm-ag#293 In a nutshell, emacs-helm-ag recommends --vimgrep to work around a bug in ag. It doesn't apply to ripgrep. I also filed a PR against emacs-helm-ag to update their README, see emacsorphanage/helm-ag#294
Thanks for your help, I think we're all set here :-) |
I'm confused. I'm on windows so I'm using --vimgrep, but helm-ag seems to only work with --vimgrep. However I get multiple matches per a line which is hell to scroll through. |
Can you use |
Nothing is showing.
|
(setq helm-ag-base-command "rg --with-filename --line-number" ) How about |
Oh my mistake, if I do from M-x helm-ag--last-command for
helm-ag--last-command for I believe it's breaking from this:
Edit: I notice for |
helm-ag--last-command
is("rg" "--smart-case" "--no-heading" "--vimgrep" "asdf")
Actual behavior
multiple lines returned for a single line containing multiple instances of the same value
Expected behavior
just show one result, like ag does
Notes
helm-ag has this code for ag:
I'm not sure why this uses
--vimgrep
on Windows and not on other platforms, but it could be the reason for the discrepancy we're seeing betweenag
andrg
. What do you recommend?References
syl20bnr/spacemacs#7370 (comment)
The text was updated successfully, but these errors were encountered: