mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 00:21:04 +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{
|
return gui.renderOptionsMap(map[string]string{
|
||||||
"PgUp/PgDn": gui.Tr.Scroll,
|
"PgUp/PgDn": gui.Tr.Scroll,
|
||||||
"← → ↑ ↓": gui.Tr.Navigate,
|
"← → ↑ ↓": gui.Tr.Navigate,
|
||||||
"esc/q": gui.Tr.Close,
|
"q": gui.Tr.Quit,
|
||||||
"b": gui.Tr.ViewBulkCommands,
|
"b": gui.Tr.ViewBulkCommands,
|
||||||
"x": gui.Tr.Menu,
|
"x": gui.Tr.Menu,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ func (gui *Gui) Menu(opts CreateMenuOptions) error {
|
||||||
|
|
||||||
func (gui *Gui) renderMenuOptions() error {
|
func (gui *Gui) renderMenuOptions() error {
|
||||||
optionsMap := map[string]string{
|
optionsMap := map[string]string{
|
||||||
"esc/q": gui.Tr.Close,
|
"esc": gui.Tr.Close,
|
||||||
"↑ ↓": gui.Tr.Navigate,
|
"↑ ↓": gui.Tr.Navigate,
|
||||||
"enter": gui.Tr.Execute,
|
"enter": gui.Tr.Execute,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ type TranslationSet struct {
|
||||||
Execute string
|
Execute string
|
||||||
Scroll string
|
Scroll string
|
||||||
Close string
|
Close string
|
||||||
|
Quit string
|
||||||
ErrorTitle string
|
ErrorTitle string
|
||||||
NoViewMachingNewLineFocusedSwitchStatement string
|
NoViewMachingNewLineFocusedSwitchStatement string
|
||||||
OpenConfig string
|
OpenConfig string
|
||||||
|
|
@ -156,6 +157,7 @@ func englishSet() TranslationSet {
|
||||||
Navigate: "navigate",
|
Navigate: "navigate",
|
||||||
Execute: "execute",
|
Execute: "execute",
|
||||||
Close: "close",
|
Close: "close",
|
||||||
|
Quit: "quit",
|
||||||
Menu: "menu",
|
Menu: "menu",
|
||||||
MenuTitle: "Menu",
|
MenuTitle: "Menu",
|
||||||
Scroll: "scroll",
|
Scroll: "scroll",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue