mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #762] Hyperlinks #557
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#557
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Stylestruct has theUrlmethod, it would be better to somehow exposetcell.Styledirectly instead of using "color tags", that way decomposition of color tags can also be completely skipped and thetcell.Stylestruct can be used directly.Issue: https://github.com/gdamore/tcell/issues/300
Commit:
github.com/gdamore/tcell@e7b14a71dcRelated: https://github.com/rivo/tview/issues/611
@rivo commented on GitHub (Nov 12, 2022):
It's not clear to me how you would expose
tcell.Styleobjects in aTextViewwithout using colour tags. Do you have a possible solution in mind already?@brainexe commented on GitHub (Dec 16, 2022):
what about something like parsing texts like
click [url=https://example.com]here[/url] for more informationwhich is parsed similar to the color/region tags?@rivo commented on GitHub (Aug 26, 2023):
tviewsupports hyperlinks now.