diff options
author | hitsuji_no_shippo <hitsujinoshippoequalsheeptail@gmail.com> | 2020-03-12 14:29:15 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-18 22:50:35 +1100 |
commit | 13a7806cac062d9a438feb2904cce2b02314cdd9 (patch) | |
tree | d96d8af663503a394cb584e987ede004b187eb05 | |
parent | 41c76fb748d22d86c23d9b3446b5cf59b2e8e1b6 (diff) |
add opne menu keybindings in docs
-rw-r--r-- | docs/keybindings/Keybindings_en.md | 1 | ||||
-rw-r--r-- | docs/keybindings/Keybindings_nl.md | 1 | ||||
-rw-r--r-- | docs/keybindings/Keybindings_pl.md | 1 | ||||
-rw-r--r-- | pkg/gui/keybindings.go | 9 | ||||
-rw-r--r-- | 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 @@ <kbd>P</kbd>: push <kbd>p</kbd>: pull <kbd>R</kbd>: refresh + <kbd>x</kbd>: open menu <kbd>+</kbd>: next screen mode (normal/half/fullscreen) <kbd>_</kbd>: prev screen mode <kbd>:</kbd>: 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 @@ <kbd>P</kbd>: push <kbd>p</kbd>: pull <kbd>R</kbd>: verversen + <kbd>x</kbd>: open menu <kbd>+</kbd>: next screen mode (normal/half/fullscreen) <kbd>_</kbd>: prev screen mode <kbd>:</kbd>: 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 @@ <kbd>P</kbd>: push <kbd>p</kbd>: pull <kbd>R</kbd>: odśwież + <kbd>x</kbd>: open menu <kbd>+</kbd>: next screen mode (normal/half/fullscreen) <kbd>_</kbd>: prev screen mode <kbd>:</kbd>: 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 @@ -1027,6 +1027,9 @@ func addEnglish(i18nObject *i18n.Bundle) error { 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", }, |