mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
Use AutoRenderHyperLinks in main views
This allows clicking on links in commit messages, for examples. It also affects the status view, so we can get rid of the manual hyperlinking there.
This commit is contained in:
parent
1ceb5a6b37
commit
26e3a93fc3
@ -208,12 +208,12 @@ func (self *StatusController) showDashboard() {
|
|||||||
[]string{
|
[]string{
|
||||||
lazygitTitle(),
|
lazygitTitle(),
|
||||||
fmt.Sprintf("Copyright %d Jesse Duffield", time.Now().Year()),
|
fmt.Sprintf("Copyright %d Jesse Duffield", time.Now().Year()),
|
||||||
fmt.Sprintf("Keybindings: %s", style.PrintSimpleHyperlink(fmt.Sprintf(constants.Links.Docs.Keybindings, versionStr))),
|
fmt.Sprintf("Keybindings: %s", fmt.Sprintf(constants.Links.Docs.Keybindings, versionStr)),
|
||||||
fmt.Sprintf("Config Options: %s", style.PrintSimpleHyperlink(fmt.Sprintf(constants.Links.Docs.Config, versionStr))),
|
fmt.Sprintf("Config Options: %s", fmt.Sprintf(constants.Links.Docs.Config, versionStr)),
|
||||||
fmt.Sprintf("Tutorial: %s", style.PrintSimpleHyperlink(constants.Links.Docs.Tutorial)),
|
fmt.Sprintf("Tutorial: %s", constants.Links.Docs.Tutorial),
|
||||||
fmt.Sprintf("Raise an Issue: %s", style.PrintSimpleHyperlink(constants.Links.Issues)),
|
fmt.Sprintf("Raise an Issue: %s", constants.Links.Issues),
|
||||||
fmt.Sprintf("Release Notes: %s", style.PrintSimpleHyperlink(constants.Links.Releases)),
|
fmt.Sprintf("Release Notes: %s", constants.Links.Releases),
|
||||||
style.FgMagenta.Sprintf("Become a sponsor: %s", style.PrintSimpleHyperlink(constants.Links.Donate)), // caffeine ain't free
|
style.FgMagenta.Sprintf("Become a sponsor: %s", constants.Links.Donate), // caffeine ain't free
|
||||||
}, "\n\n") + "\n"
|
}, "\n\n") + "\n"
|
||||||
|
|
||||||
self.c.RenderToMainViews(types.RefreshMainOpts{
|
self.c.RenderToMainViews(types.RefreshMainOpts{
|
||||||
|
@ -118,6 +118,7 @@ func (gui *Gui) createAllViews() error {
|
|||||||
view.Wrap = true
|
view.Wrap = true
|
||||||
view.IgnoreCarriageReturns = true
|
view.IgnoreCarriageReturns = true
|
||||||
view.UnderlineHyperLinksOnlyOnHover = true
|
view.UnderlineHyperLinksOnlyOnHover = true
|
||||||
|
view.AutoRenderHyperLinks = true
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.Views.Staging.Title = gui.c.Tr.UnstagedChanges
|
gui.Views.Staging.Title = gui.c.Tr.UnstagedChanges
|
||||||
|
Loading…
x
Reference in New Issue
Block a user