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

Highlight (reverse) hyperlinks on mouse hover #3857

Closed
wants to merge 3 commits into from

Conversation

stefanhaller
Copy link
Collaborator

  • PR Description

This is an alternative to #3856: here we change gocui so that it doesn't underline links at all, ever (if clients want that, they need to add the underline attribute themselves). Instead, we highlight links on hover by using the reverse attribute.

I prefer this to #3856: it looks better, at least for the line numbers in delta diffs, and it is much easier to see.

We send this event when the mouse is moved but no button is down. Can be used
for highlighting things on mouse hover.
We don't underline them at all any more, so if clients would like to show links
underlined by default for better discoverability, they need to add the underline
attribute themselves.
Now that gocui no longer does this for us, we need to add the underline
attribute on our side.
@stefanhaller stefanhaller added the enhancement New feature or request label Aug 24, 2024
@stefanhaller stefanhaller mentioned this pull request Aug 24, 2024
6 tasks
@stefanhaller
Copy link
Collaborator Author

Closing, as everybody (except me) prefers the other one.

@stefanhaller stefanhaller deleted the highlight-hyperlinks-on-mouse-hover branch August 24, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant