1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +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" {