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 #762

Closed
golangdojo99 opened this issue Sep 27, 2022 · 3 comments
Closed

Hyperlinks #762

golangdojo99 opened this issue Sep 27, 2022 · 3 comments

Comments

@golangdojo99
Copy link

golangdojo99 commented Sep 27, 2022

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: gdamore/tcell#300
Commit: gdamore/tcell@e7b14a7
Related: #611

@rivo
Copy link
Owner

rivo commented 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?

@brainexe
Copy link

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?

@rivo
Copy link
Owner

rivo commented Aug 26, 2023

tview supports hyperlinks now.

@rivo rivo closed this as completed Aug 26, 2023
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

4 participants
@rivo @brainexe @golangdojo99 and others