mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Move the "Focus main view" command to the global section of the keybindings menu
This commit is contained in:
@ -61,7 +61,7 @@ func (self *OptionsMenuAction) getBindings(context types.Context) ([]*types.Bind
|
|||||||
|
|
||||||
for _, binding := range bindings {
|
for _, binding := range bindings {
|
||||||
if binding.Description != "" {
|
if binding.Description != "" {
|
||||||
if binding.ViewName == "" {
|
if binding.ViewName == "" || binding.Tag == "global" {
|
||||||
bindingsGlobal = append(bindingsGlobal, binding)
|
bindingsGlobal = append(bindingsGlobal, binding)
|
||||||
} else if binding.ViewName == context.GetViewName() {
|
} else if binding.ViewName == context.GetViewName() {
|
||||||
if binding.Tag == "navigation" {
|
if binding.Tag == "navigation" {
|
||||||
|
@ -32,6 +32,7 @@ func (self *SwitchToFocusedMainViewController) GetKeybindings(opts types.Keybind
|
|||||||
Key: opts.GetKey(opts.Config.Universal.FocusMainView),
|
Key: opts.GetKey(opts.Config.Universal.FocusMainView),
|
||||||
Handler: self.handleFocusMainView,
|
Handler: self.handleFocusMainView,
|
||||||
Description: self.c.Tr.FocusMainView,
|
Description: self.c.Tr.FocusMainView,
|
||||||
|
Tag: "global",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user