-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
--files ignores first path argument #64
Comments
Also very confused by this. Does |
The title is likely accurate. |
Thanks for reporting and fixing this, respectively! Just stumbled upon this, trying to use ripgrep with the CtrlP plugin for Vim. |
I can confirm that the patch works for me. Thanks again! In case somebody else is interested, this is now in my if executable('rg')
let g:ctrlp_user_command = 'rg --files %s'
let g:ctrlp_use_caching = 0
endif |
amsharma91
added a commit
to amsharma91/ripgrep
that referenced
this issue
Sep 27, 2016
This is a docopt oddity, but probably not a bug. If --files is given, then just interpret the pattern (if not empty) as the first file path. Fixes BurntSushi#64.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure whether this is a misunderstanding, a documentation bug, or an actual bug, but the
--files
option appears to ignore the first path argument given to it:Steps to reproduce
Here's a shell session that shows the problem:
Is this because the first argument is the (ignored) pattern? If so, I think the docs need updating, as the man page says:
The text was updated successfully, but these errors were encountered: