Skip to content

Commit

Permalink
Set main views to underline hyperlinks only on mouse hover
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stefanhaller committed Aug 24, 2024
1 parent 8d37f48 commit 68c7f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/gui/views.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68c7f98

Please sign in to comment.