-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
counsel-rg's extra arguments do not support additional paths to search from #1498
Comments
Thanks for the report. Could you add the full command line that does what you want with |
Yes, it's very simple: |
OK, here's how I made it work (no code changes needed):
Let me know if it works for you. |
Note the space before |
Thanks, that works for me. Glad you mentioned the space before |
Thanks, fixed. The extra initial space is no longer needed. |
According to
man rg
, any paths as the last arguments to the command are paths to search from. However, using the universal argumentC-u counsel-rg
to promptcounsel-rg
for extra arguments and specifying a path as an argument will result incounsel-rg
not showing results from this path and from the initial/default path, so the search results will always have nothing.Example:
C-u counsel-rg
, enter~/bin
as initial directory to search for, enter~/.emacs.d
as an argument when prompted, and any string you search will return 0 results even if that string is in~/bin
.Saw this issue posted on /r/emacs, so might as well submit a GH issue.
The text was updated successfully, but these errors were encountered: