separate quit and close options

pull/392/head
Jesse Duffield 2 years ago
parent d1ccf11502
commit b7fea7a44d

@ -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…
Cancel
Save