Skip to content
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

hyperlinks: add support for optional id parameter #570

Merged
merged 1 commit into from Oct 17, 2022

Conversation

rockorager
Copy link
Contributor

OSC8 escape sequences allow for marking up hyperlinks in the terminal. An optional id parameter is defined to allow applications to signal to the terminal that (potentially) broken character sequences belong to the same URL and should be treated as if they were connected.

Add support for optional id parameters, set by the application. Update test case for ti.EnterUrl.

Fixes: #568
Reference: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#hover-underlining-and-the-id-parameter

OSC8 escape sequences allow for marking up hyperlinks in the terminal.
An optional `id` parameter is defined to allow applications to signal to
the terminal that (potentially) broken character sequences belong to the
same URL and should be treated as if they were connected.

Add support for optional id parameters, set by the application. Update
test case for ti.EnterUrl.

Fixes: gdamore#568
Reference: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#hover-underlining-and-the-id-parameter
Copy link
Owner

@gdamore gdamore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Only question is, do you want to add your name to the AUTHORS file?

@rockorager
Copy link
Contributor Author

This looks good. Only question is, do you want to add your name to the AUTHORS file?

Not needed. Thanks!

@gdamore gdamore merged commit 43efca7 into gdamore:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for setting an (optional) ID on OSC-8 hyperlinks
2 participants