You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 for rg 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 to vim, 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:
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: