From 13a7806cac062d9a438feb2904cce2b02314cdd9 Mon Sep 17 00:00:00 2001 From: hitsuji_no_shippo Date: Thu, 12 Mar 2020 14:29:15 +0900 Subject: [PATCH] add opne menu keybindings in docs --- docs/keybindings/Keybindings_en.md | 1 + docs/keybindings/Keybindings_nl.md | 1 + docs/keybindings/Keybindings_pl.md | 1 + pkg/gui/keybindings.go | 9 +++++---- pkg/i18n/english.go | 3 +++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/keybindings/Keybindings_en.md b/docs/keybindings/Keybindings_en.md index 31f97b87c..979cc288a 100644 --- a/docs/keybindings/Keybindings_en.md +++ b/docs/keybindings/Keybindings_en.md @@ -10,6 +10,7 @@ P: push p: pull R: refresh + x: open menu +: next screen mode (normal/half/fullscreen) _: prev screen mode :: execute custom command diff --git a/docs/keybindings/Keybindings_nl.md b/docs/keybindings/Keybindings_nl.md index 2555b8f5a..ecd97345a 100644 --- a/docs/keybindings/Keybindings_nl.md +++ b/docs/keybindings/Keybindings_nl.md @@ -10,6 +10,7 @@ P: push p: pull R: verversen + x: open menu +: next screen mode (normal/half/fullscreen) _: prev screen mode :: voor aangepast commando uit diff --git a/docs/keybindings/Keybindings_pl.md b/docs/keybindings/Keybindings_pl.md index 82ef4b85b..e587b2fcf 100644 --- a/docs/keybindings/Keybindings_pl.md +++ b/docs/keybindings/Keybindings_pl.md @@ -10,6 +10,7 @@ P: push p: pull R: odśwież + x: open menu +: next screen mode (normal/half/fullscreen) _: prev screen mode :: execute custom command diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 8a6e9c091..825c1c21c 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -295,10 +295,11 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Description: gui.Tr.SLocalize("refresh"), }, { - ViewName: "", - Key: gui.getKey("universal.optionMenu"), - Modifier: gocui.ModNone, - Handler: gui.handleCreateOptionsMenu, + ViewName: "", + Key: gui.getKey("universal.optionMenu"), + Modifier: gocui.ModNone, + Handler: gui.handleCreateOptionsMenu, + Description: gui.Tr.SLocalize("openMenu"), }, { ViewName: "", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index cde2bcc5c..c17cd753d 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -1026,6 +1026,9 @@ func addEnglish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "RenameBranchWarning", Other: "This branch is tracking a remote. This action will only rename the local branch name, not the name of the remote branch. Continue?", + }, &i18n.Message{ + ID: "openMenu", + Other: "open menu", }, &i18n.Message{ ID: "closeMenu", Other: "close menu",