-
Notifications
You must be signed in to change notification settings - Fork 113
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
[FR] Add --hyperlink option #133
Comments
Thanks for the feedback and suggestion. We could make OSC code hyperlinks the default when color output is enabled. Terminals that do not support this OSC code ignore it, as expected/required. We can extend the color palette I'm thinking that this is approach probably more intuitive than adding yet another new option. Enabling and disabling hyperlinks depends on the terminal output and is enabled by internal detection of ANSI-capable terminals. Same for ANSI color output. |
Sounds fine to me. I generally prefer having simple options to having mini DSLs like GREP_COLORS, but it’s not a big matter. Thanks! |
According to Hyperlinks (a.k.a. HTML-like anchors) in terminal emulators:
Alas, that is not the case. After playing a bit with my prototype implementation, I found at least one popular terminal program (on Raspberry Pi) that produces garbage. So it is easy to claim these terminal programs are buggy, but unfortunately we cannot assume that these "buggy terminals" will be fixed anytime soon. Also So we need to be more pragmatic. Let's make this optional by adding a new |
This feature is added to ugrep 3.3, available very soon. I've tested this feature with Windows Terminal. It is a nice addition. |
Thanks! <3 |
Terminals have recently gotten support for hyperlinks in ANSI.
It'd be nice to have the filenames as hyperlinks. Ideally, each printed line should be a hyperlink in the style
/path/to/file:linenumber:column-of-first-match
.Related:
The text was updated successfully, but these errors were encountered: