diff options
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 74cfd06a6..bd5d5fd2c 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -348,6 +348,18 @@ func (gui *Gui) renderAppStatus(g *gocui.Gui) error { return nil } +func (gui *Gui) renderGlobalOptions(g *gocui.Gui) error { + return gui.renderOptionsMap(g, map[string]string{ + "R": gui.Tr.SLocalize("refresh"), + "p": gui.Tr.SLocalize("pull"), + "P": gui.Tr.SLocalize("push"), + "PgUp/PgDn": gui.Tr.SLocalize("scroll"), + "← → ↑ ↓": gui.Tr.SLocalize("navigate"), + "esc/q": gui.Tr.SLocalize("close"), + "?": gui.Tr.SLocalize("help"), + }) +} + func (gui *Gui) goEvery(g *gocui.Gui, interval time.Duration, function func(*gocui.Gui) error) { go func() { for range time.Tick(interval) { |