-
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
Don't display context separators when only listing files #693
Comments
Yeah, also affects |
okdana
added a commit
to okdana/ripgrep
that referenced
this issue
Nov 29, 2017
BurntSushi
pushed a commit
that referenced
this issue
Nov 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When listing files, even if
--context
is an option, I don't think we need the context separator. I understand that those options don't make much sense in this contrived example. However, I have an alias set up forrg
that adds a bunch of options that I want as defaults, including--context
. I (sometimes) use-l
to list out files that I can pass tovim
, e.g.vim $(rg "context-separator" -l)
.I tried to set
--context=0
when using-l
– which would be an ok tradeoff for me – but it looks like multiple--context
flags are not allowed.rg … | sed '/--/d'
is another potential solution, but it would break if--context-separator
specified a different separator.The text was updated successfully, but these errors were encountered: