Skip to content

Commit 7fe96e9

Browse files
committed
Include commands without keybinding in options menu
This is not a behavior change, we already include these in the menu, but that's because of a bug that we will fix in the next commit. I find it useful to see these commands, especially for rarely-used custom commands that you don't want to waste a keybinding on.
1 parent 2bd6881 commit 7fe96e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/gui/controllers/options_menu_action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package controllers
22

33
import (
4-
"github.com/jesseduffield/lazygit/pkg/gui/keybindings"
54
"github.com/jesseduffield/lazygit/pkg/gui/types"
65
"github.com/jesseduffield/lazygit/pkg/utils"
76
"github.com/samber/lo"
@@ -61,7 +60,7 @@ func (self *OptionsMenuAction) getBindings(context types.Context) ([]*types.Bind
6160
bindings, _ := self.c.GetInitialKeybindingsWithCustomCommands()
6261

6362
for _, binding := range bindings {
64-
if keybindings.LabelFromKey(binding.Key) != "" && binding.Description != "" {
63+
if binding.Description != "" {
6564
if binding.ViewName == "" {
6665
bindingsGlobal = append(bindingsGlobal, binding)
6766
} else if binding.ViewName == context.GetViewName() {

0 commit comments

Comments
 (0)