Only underline hyperlinks on hover #11247

Closed
opened 2026-01-31 02:42:28 +00:00 by claunia · 4 comments
Owner

Originally created by @j4james on GitHub (Nov 1, 2020).

Originally assigned to: @DHowett on GitHub.

Description of the new feature/enhancement

I can understand that some people will feel differently about this, but could we at least have an option to underline the hyperlinks only when the mouse is hovered over them, instead of showing the underline all the time?

On explicit hyperlinks (via OSC 8) I feel it should really be up to the app generating the link to choose how it wants that rendered. For example, you might be trying to make a link look like a button, but then we add dashed underlines everywhere which totally mess up the effect.

In the case of the autodetected hyperlinks, it's already obvious when something is a link. And the annoying thing is the underline doesn't track very well when you scroll, so ends up lingering on areas of the page that don't even have a link. I don't know if that's something we can fix, but either way I'd rather it just didn't underline at all until you hovered.

And as a point of comparison, every terminal I've tried so far that autodetects links does so my showing the underline only when you hover over the link. This includes Gnome Terminal, Konsole, Alacritty, Kitty, Terminator, and Mintty - the latter only showing the underline when you're pressing Ctrl at the same time.

For OSC 8 links, Gnome Terminal displays a dotted underline without having to hover, but it's at least more subtle than our dashed underline. Mintty again only shows an underline when actually hovering over the link with the Ctrl key pressed.

Originally created by @j4james on GitHub (Nov 1, 2020). Originally assigned to: @DHowett on GitHub. # Description of the new feature/enhancement I can understand that some people will feel differently about this, but could we at least have an option to underline the hyperlinks only when the mouse is hovered over them, instead of showing the underline all the time? On explicit hyperlinks (via `OSC 8`) I feel it should really be up to the app generating the link to choose how it wants that rendered. For example, you might be trying to make a link look like a button, but then we add dashed underlines everywhere which totally mess up the effect. In the case of the autodetected hyperlinks, it's already obvious when something is a link. And the annoying thing is the underline doesn't track very well when you scroll, so ends up lingering on areas of the page that don't even have a link. I don't know if that's something we can fix, but either way I'd rather it just didn't underline at all until you hovered. And as a point of comparison, every terminal I've tried so far that autodetects links does so my showing the underline only when you hover over the link. This includes Gnome Terminal, Konsole, Alacritty, Kitty, Terminator, and Mintty - the latter only showing the underline when you're pressing `Ctrl` at the same time. For `OSC 8` links, Gnome Terminal displays a dotted underline without having to hover, but it's at least more subtle than our dashed underline. Mintty again only shows an underline when actually hovering over the link with the `Ctrl` key pressed.
Author
Owner

@DHowett commented on GitHub (Nov 2, 2020):

Yeah, I’m actually totally in support of this. It hides a chosen deficiency (scanning for URLs on a delay) and makes the screen less cluttered.

How about:

  • we use a less obtrusive dotted line, eventually configurable, for OSC 8
  • that dotted line becomes a solid line on hover
  • for detected URLs, we use no treatment but offer a solid line on hover

Eventually, we can add configuration for different treatments for both types of link.

@DHowett commented on GitHub (Nov 2, 2020): Yeah, I’m actually totally in support of this. It hides a chosen deficiency (scanning for URLs on a delay) and makes the screen less cluttered. How about: * we use a less obtrusive dotted line, eventually configurable, for OSC 8 * that dotted line becomes a solid line on hover * for detected URLs, we use no treatment but offer a solid line on hover Eventually, we can add configuration for different treatments for both types of link.
Author
Owner

@DHowett commented on GitHub (Nov 3, 2020):

This is now in PR in #8148.

@DHowett commented on GitHub (Nov 3, 2020): This is now in PR in #8148.
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #8148, which has now been successfully released as Windows Terminal v1.4.3141.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #8148, which has now been successfully released as `Windows Terminal v1.4.3141.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.4.3141.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #8148, which has now been successfully released as Windows Terminal Preview v1.5.3142.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #8148, which has now been successfully released as `Windows Terminal Preview v1.5.3142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.3142.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11247