1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

add close menu keybindings in docs

This commit is contained in:
hitsuji_no_shippo
2020-03-12 14:26:11 +09:00
committed by Jesse Duffield
parent ac0c3b9f92
commit 41c76fb748
5 changed files with 19 additions and 8 deletions

View File

@ -198,6 +198,8 @@
## Menu Panel ## Menu Panel
<pre> <pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
</pre> </pre>

View File

@ -198,6 +198,8 @@
## Menu Panel ## Menu Panel
<pre> <pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
</pre> </pre>

View File

@ -198,6 +198,8 @@
## Menu Panel ## Menu Panel
<pre> <pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
</pre> </pre>

View File

@ -901,16 +901,18 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleCloseCredentialsView, Handler: gui.handleCloseCredentialsView,
}, },
{ {
ViewName: "menu", ViewName: "menu",
Key: gui.getKey("universal.return"), Key: gui.getKey("universal.return"),
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleMenuClose, Handler: gui.handleMenuClose,
Description: gui.Tr.SLocalize("closeMenu"),
}, },
{ {
ViewName: "menu", ViewName: "menu",
Key: gui.getKey("universal.quit"), Key: gui.getKey("universal.quit"),
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleMenuClose, Handler: gui.handleMenuClose,
Description: gui.Tr.SLocalize("closeMenu"),
}, },
{ {
ViewName: "information", ViewName: "information",

View File

@ -1026,6 +1026,9 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{ }, &i18n.Message{
ID: "RenameBranchWarning", 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?", 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: "closeMenu",
Other: "close menu",
}, },
) )
} }