Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upcounsel-rg's extra arguments do not support additional paths to search from #1498
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
abo-abo
Mar 22, 2018
Owner
Thanks for the report. Could you add the full command line that does what you want with ~/bin?
|
Thanks for the report. Could you add the full command line that does what you want with |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rieje
Mar 22, 2018
Yes, it's very simple: rg bash ~/bin ~/documentation (rg <pattern> [path...]). Based on what I've found, the order of the paths don't matter as specifying any path as an extra argument in addition to counsel-rg's initial path will not yield any results.
rieje
commented
Mar 22, 2018
•
|
Yes, it's very simple: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
abo-abo
Jul 5, 2018
Owner
OK, here's how I made it work (no code changes needed):
- enter
~/binas the initial dir as you do already - enter
-- ~/.emacs.das the extra args
Let me know if it works for you.
|
OK, here's how I made it work (no code changes needed):
Let me know if it works for you. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Note the space before |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rieje
Jul 6, 2018
Thanks, that works for me. Glad you mentioned the space before --, Github didn't show that. On reddit, you linked the related issue--I'm guessing that PR will solve this issue of needing to put a space before -- or remove the need for using -- altogether? You can decide whether to close this issue.
rieje
commented
Jul 6, 2018
•
|
Thanks, that works for me. Glad you mentioned the space before |
basil-conto
referenced this issue
Jul 8, 2018
Open
counsel-rg: --no-ignore yields no results (different than rg command) #1658
abo-abo
closed this
in
58e82ef
Jul 9, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Thanks, fixed. The extra initial space is no longer needed. |
rieje commentedMar 21, 2018
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-rgto promptcounsel-rgfor extra arguments and specifying a path as an argument will result incounsel-rgnot 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~/binas initial directory to search for, enter~/.emacs.das 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.