mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
separate quit and close options
This commit is contained in:
parent
d1ccf11502
commit
b7fea7a44d
3 changed files with 4 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ func (gui *Gui) renderGlobalOptions() error {
|
|||
return gui.renderOptionsMap(map[string]string{
|
||||
"PgUp/PgDn": gui.Tr.Scroll,
|
||||
"← → ↑ ↓": gui.Tr.Navigate,
|
||||
"esc/q": gui.Tr.Close,
|
||||
"q": gui.Tr.Quit,
|
||||
"b": gui.Tr.ViewBulkCommands,
|
||||
"x": gui.Tr.Menu,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ func (gui *Gui) Menu(opts CreateMenuOptions) error {
|
|||
|
||||
func (gui *Gui) renderMenuOptions() error {
|
||||
optionsMap := map[string]string{
|
||||
"esc/q": gui.Tr.Close,
|
||||
"esc": gui.Tr.Close,
|
||||
"↑ ↓": gui.Tr.Navigate,
|
||||
"enter": gui.Tr.Execute,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ type TranslationSet struct {
|
|||
Execute string
|
||||
Scroll string
|
||||
Close string
|
||||
Quit string
|
||||
ErrorTitle string
|
||||
NoViewMachingNewLineFocusedSwitchStatement string
|
||||
OpenConfig string
|
||||
|
|
@ -156,6 +157,7 @@ func englishSet() TranslationSet {
|
|||
Navigate: "navigate",
|
||||
Execute: "execute",
|
||||
Close: "close",
|
||||
Quit: "quit",
|
||||
Menu: "menu",
|
||||
MenuTitle: "Menu",
|
||||
Scroll: "scroll",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue