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

Support links with multiple ranges #4006

Open
Tyriar opened this issue Aug 7, 2022 · 0 comments
Open

Support links with multiple ranges #4006

Tyriar opened this issue Aug 7, 2022 · 0 comments
Labels
area/links type/bug Something is misbehaving

Comments

@Tyriar
Copy link
Member

Tyriar commented Aug 7, 2022

OSC 8 hyperlink support does not currently support links that share their id/uri to change hover feedback: #4005

image

There is also the more complicated case of using no id and moving the cursor:

Screen Shot 2022-08-07 at 11 54 29 am

For hyperlink cells that do not have an id (or have an empty id, these two are interchangeable), the terminal emulator does some heuristics in figuring out which cells belong together. Here VTE and iTerm2 differ, but from a practical point of view, this difference should not matter. (VTE automatically assigns a new unique id whenever it encounters an OSC 8 with a URI but without id. That is, it automatically connects cells that were printed in a single OSC 8 run, in case there was no explicit id. iTerm2 looks at the onscreen contents and connects those cells that are next to each other, lack the id, but point to the same URI.)

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

@Tyriar Tyriar added type/bug Something is misbehaving area/links labels Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/links type/bug Something is misbehaving
Projects
None yet
Development

No branches or pull requests

1 participant