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
This would help when invoking ripgrep in an IDE, such as Visual Studio Code (VSC), to allow clicking on links detected in terminals. This is because with the defaulf of rg default, e.g.:
.bazelrc:4:common --enable_bzlmod
link detection does not work. Using --field-match-separator=": " or --field-match-separator=" :" isn't right and doesn't work either.
What one would ideally want is (something like): --field-match-separator-prefix=":" --field-match-separator-postfix=" " so that it would print:
.bazelrc:4 common --enable_bzlmod
PS: I guess one could work around this either by post-processing rg output, or perhaps with a custom problem matcher in VSC, but the flags would be neat.
The text was updated successfully, but these errors were encountered:
This looks like a duplicate of #665 to me. You're suggesting a different approach here, but the high level problem you're trying to solve appears to be same.
IMO, VS Code should adapt to the format. It's standard grep format. VS Code should understand that. Many other editors already do.
Hyperlinks will be available as an opt-in feature in ripgrep 14. Given that your ultimate goal here is the ability to click on things and that's better solved by hyperlinks, I'm going to close this.
I probably would wind up closing this anyway as I'm not keen on just adding to a never-ending list of output control functions. This feature request is proposing four new flags that are, to a first approximation, never going to be used. Not worth it.
Following up on #1842, it could be great and very useful if, in addition to the current flags introduced in #1871:
there were, in addition, also:
This would help when invoking ripgrep in an IDE, such as Visual Studio Code (VSC), to allow clicking on links detected in terminals. This is because with the defaulf of
rg
default, e.g.:link detection does not work. Using
--field-match-separator=": "
or--field-match-separator=" :"
isn't right and doesn't work either.What one would ideally want is (something like):
--field-match-separator-prefix=":" --field-match-separator-postfix=" "
so that it would print:PS: I guess one could work around this either by post-processing
rg
output, or perhaps with a custom problem matcher in VSC, but the flags would be neat.The text was updated successfully, but these errors were encountered: