Fork me on GitHub
#vscode
<
2021-11-03
>
sashton18:11:42

For those using vspacecode, is there a way to define a new top-level WhichKey menu? I’ve tried the following without success:

👀 1
sashton18:11:57

"vspacecode.bindingOverrides": [
        {
            "key": "A",
            "name": "App...",
            "type": "bindings",
            "bindings": [
                {
                    "key": "s",
                    "name": "Open Settings (JSON)",
                    "type": "command",
                    "command":"workbench.action.openSettingsJson",
                }
            ]
        }

sashton19:11:04

Ok, trial and error got it working (based on someone’s gist):

{
            "keys": ["A"],
            "name": "App",
            "type": "bindings",
            "bindings":[
                {
                    "key": "s",
                    "name": "Open Settings (JSON)",
                    "type": "command",
                    "command":"workbench.action.openSettingsJson",
                }
            ]
        },
       
I’m not sure whey the keys needs to be an array here. I didn’t notice that in any examples.

🙏 1