[GH-ISSUE #762] Hyperlinks #557

Closed
opened 2026-03-04 01:05:59 +03:00 by kerem · 3 comments
Owner

Originally created by @golangdojo99 on GitHub (Sep 27, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/762

Looks like tview does not support terminal hyperlinks; tcell added support for them in April. TextView widget should have support for them. Since the tcell.Style struct has the Url method, it would be better to somehow expose tcell.Style directly instead of using "color tags", that way decomposition of color tags can also be completely skipped and the tcell.Style struct can be used directly.

Issue: https://github.com/gdamore/tcell/issues/300
Commit: github.com/gdamore/tcell@e7b14a71dc
Related: https://github.com/rivo/tview/issues/611

Originally created by @golangdojo99 on GitHub (Sep 27, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/762 Looks like tview does not support terminal hyperlinks; tcell added support for them in April. TextView widget should have support for them. Since the `tcell.Style` struct has the `Url` method, it would be better to somehow expose `tcell.Style` directly instead of using "color tags", that way decomposition of color tags can also be completely skipped and the `tcell.Style` struct can be used directly. Issue: https://github.com/gdamore/tcell/issues/300 Commit: https://github.com/gdamore/tcell/commit/e7b14a71dc78721c0f007fd6197262c52c1d4df9 Related: https://github.com/rivo/tview/issues/611
kerem closed this issue 2026-03-04 01:05:59 +03:00
Author
Owner

@rivo commented on GitHub (Nov 12, 2022):

It's not clear to me how you would expose tcell.Style objects in a TextView without using colour tags. Do you have a possible solution in mind already?

<!-- gh-comment-id:1312479683 --> @rivo commented on GitHub (Nov 12, 2022): It's not clear to me how you would expose `tcell.Style` objects in a `TextView` without using colour tags. Do you have a possible solution in mind already?
Author
Owner

@brainexe commented on GitHub (Dec 16, 2022):

what about something like parsing texts like click [url=https://example.com]here[/url] for more information which is parsed similar to the color/region tags?

<!-- gh-comment-id:1355194118 --> @brainexe commented on GitHub (Dec 16, 2022): what about something like parsing texts like `click [url=https://example.com]here[/url] for more information` which is parsed similar to the color/region tags?
Author
Owner

@rivo commented on GitHub (Aug 26, 2023):

tview supports hyperlinks now.

<!-- gh-comment-id:1694356028 --> @rivo commented on GitHub (Aug 26, 2023): `tview` supports hyperlinks now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#557
No description provided.