From 68c7f9840acd81f3f762cabc6c7e5f5c7a7bce7b Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 24 Aug 2024 12:16:07 +0200 Subject: [PATCH] Set main views to underline hyperlinks only on mouse hover Note that this doesn't only affect the diff views, which are the ones where we want this, but also the status view, where the plan was to keep them underlined always for better discoverability. We could make this configurable dynamically (by adding another flag to ViewUpdateOpts), but actually I think it's fine this way. --- pkg/gui/views.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gui/views.go b/pkg/gui/views.go index e76ed24d3c4..f561eac3753 100644 --- a/pkg/gui/views.go +++ b/pkg/gui/views.go @@ -117,6 +117,7 @@ func (gui *Gui) createAllViews() error { view.Title = gui.c.Tr.DiffTitle view.Wrap = true view.IgnoreCarriageReturns = true + view.UnderlineHyperLinksOnlyOnHover = true } gui.Views.Staging.Title = gui.c.Tr.UnstagedChanges