mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
add donation link to status panel
This commit is contained in:
parent
3101c50582
commit
3d751c03fe
@ -2,6 +2,7 @@ package gui
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/jesseduffield/gocui"
|
"github.com/jesseduffield/gocui"
|
||||||
@ -51,14 +52,16 @@ func (gui *Gui) handleCheckForUpdate(g *gocui.Gui, v *gocui.View) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error {
|
func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error {
|
||||||
dashboardString := fmt.Sprintf(
|
dashboardString := strings.Join(
|
||||||
"%s\n\n%s\n\n%s\n\n%s\n\n%s",
|
[]string{
|
||||||
lazygitTitle(),
|
lazygitTitle(),
|
||||||
"Keybindings: https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md",
|
"Copyright (c) 2018 Jesse Duffield",
|
||||||
"Config Options: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md",
|
"Keybindings: https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md",
|
||||||
"Tutorial: https://www.youtube.com/watch?v=VDXvbHZYeKY",
|
"Config Options: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md",
|
||||||
"Raise an Issue: https://github.com/jesseduffield/lazygit/issues",
|
"Tutorial: https://www.youtube.com/watch?v=VDXvbHZYeKY",
|
||||||
)
|
"Raise an Issue: https://github.com/jesseduffield/lazygit/issues",
|
||||||
|
"Buy Jesse a coffee: https://donorbox.org/lazygit",
|
||||||
|
}, "\n\n")
|
||||||
|
|
||||||
if err := gui.renderString(g, "main", dashboardString); err != nil {
|
if err := gui.renderString(g, "main", dashboardString); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user