1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-09-16 09:16:26 +02:00

add random tip to command log

This commit is contained in:
Jesse Duffield
2021-04-11 23:32:20 +10:00
parent 06a8eb115c
commit 3b7e7a7f56
12 changed files with 213 additions and 33 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/fatih/color"
"github.com/jesseduffield/lazygit/pkg/constants"
)
func (gui *Gui) informationStr() string {
@@ -43,9 +44,9 @@ func (gui *Gui) handleInfoClick() error {
// if we're not in an active mode we show the donate button
if cx <= len(gui.Tr.Donate) {
return gui.OSCommand.OpenLink("https://github.com/sponsors/jesseduffield")
return gui.OSCommand.OpenLink(constants.Links.Donate)
} else if cx <= len(gui.Tr.Donate)+1+len(gui.Tr.AskQuestion) {
return gui.OSCommand.OpenLink("https://github.com/jesseduffield/lazygit/discussions")
return gui.OSCommand.OpenLink(constants.Links.Discussions)
}
return nil
}