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 hyperlinks #161

Open
avamsi opened this issue Oct 12, 2024 · 1 comment
Open

Support hyperlinks #161

avamsi opened this issue Oct 12, 2024 · 1 comment

Comments

@avamsi
Copy link
Contributor

avamsi commented Oct 12, 2024

Viddy doesn't seem to be rendering OSC 8 hyperlinks (https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). ratatui/ratatui#1028 seems related -- it looks like there's a workaround (ratatui/ratatui#1028 (comment)) but I'm not even sure if I'm reading it right and if it's a useable workaround.


Repro:

$ cat /tmp/example.py
print("\x1b]8;;http://example.com\x1b\\Example Domain\x1b]8;;\x1b\\")

python /tmp/example.py outputs Example Domain linking it to http://example.com (as expected).
viddy python /tmp/example.py outputs Example Domain but (seemingly) as plain text.

@avamsi
Copy link
Contributor Author

avamsi commented Oct 15, 2024

I.. ended up writing my own watch command https://github.com/avamsi/dekh for when I really need hyperlinks (and to play around with bubbletea), but it's really barebones and doesn't have pretty much any features that viddy has.

It does uh, "borrow" its header from viddy :) --

dekh screenshot

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

No branches or pull requests

1 participant