-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add support for OSC 8 hyperlinks (HTML-like anchors) #427
Conversation
See also #175 |
I have no idea how to test this, would need to be able to do so without connection to unknown/unsafe sites |
Overall information about this feature: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
|
I don't really understand this, so will leave it for other team members to work on. I DO see a possible issue in your linked explanation though: autocompleting URLs could lead people to sites they don't ever want to connect to (e.g Facebook, Tiktok) or even to malware sites. Anything networked requires serious security, and coding it is out of my experience beyond blocking such sites on my machines. |
@geo-stark Thank you for your work. I am very interested in this new function. I will review the code when I have enough time |
This just affects rendering. What this does is expose functionality already available in VTE: hypertext linking. We already do the same thing with plain links, this just adds the hypertext portion. |
rename some url-related variables rename TerminalURLFlavour enum to TerminalURLFlavor backport of 0789b02ee11038743fde08795eb4a1ac0bcc3f47 from gnome-terminal to be a bit close to gnome-terminal source
@vkareh @geo-stark |
This looks good to me. I just did a quick review of the code and tested it and it still works as I remember. I'm fine if we merge this. |
@vkareh |
I responded to all comments regarding the patches. If community has other questions \ suggestions I'm ready to answer it. |
A better page for information seems to be here https://github.com/Alhadis/OSC8-Adoption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
works fine with those example commands.
printf '\033]8;;http://example.com\033\\This is a link\033]8;;\033\\\n'
ls --hyperlink=always
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
backport of 1c6f8db736efc62d9a9b38bfbc43ec03c8544696 from gnome-terminal
in mailto scheme IDN coding may apply only to domain part local part if not in ASCII must be unicode
No description provided.