We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7137196 commit e295477Copy full SHA for e295477
pkg/config/user_config_validation_test.go
@@ -74,6 +74,30 @@ func TestUserConfigValidate_enums(t *testing.T) {
74
{value: "invalid_value", valid: false},
75
},
76
77
+ {
78
+ name: "Custom command keybinding in sub menu",
79
+ setup: func(config *UserConfig, value string) {
80
+ config.CustomCommands = []CustomCommand{
81
82
+ Key: "X",
83
+ Description: "My Custom Commands",
84
+ CommandMenu: []CustomCommand{
85
+ {Key: value, Command: "echo 'hello'", Context: "global"},
86
+ },
87
88
+ }
89
90
+ testCases: []testCase{
91
+ {value: "", valid: true},
92
+ {value: "<disabled>", valid: true},
93
+ {value: "q", valid: true},
94
+ {value: "<c-c>", valid: true},
95
+ /* EXPECTED:
96
+ {value: "invalid_value", valid: false},
97
+ ACTUAL */
98
+ {value: "invalid_value", valid: true},
99
100
101
{
102
name: "Custom command sub menu",
103
setup: func(config *UserConfig, _ string) {
0 commit comments