1
0
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:
Stefan Haller
2025-07-19 12:39:50 +02:00
parent 96a6e659a6
commit 837efd95e2
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (self *OptionsMenuAction) getBindings(context types.Context) ([]*types.Bind
for _, binding := range bindings {
if binding.Description != "" {
if binding.ViewName == "" {
if binding.ViewName == "" || binding.Tag == "global" {
bindingsGlobal = append(bindingsGlobal, binding)
} else if binding.ViewName == context.GetViewName() {
if binding.Tag == "navigation" {

View File

@ -32,6 +32,7 @@ func (self *SwitchToFocusedMainViewController) GetKeybindings(opts types.Keybind
Key: opts.GetKey(opts.Config.Universal.FocusMainView),
Handler: self.handleFocusMainView,
Description: self.c.Tr.FocusMainView,
Tag: "global",
},
}