Question: How to bind multiple commands to a key
Closed this issue · 2 comments
yerlaser commented
In the README it is written:
Most keybindings exposed by Dance are actually implemented by running several Dance commands in a row.
But, VS Code doesn't yet allow binding multiple commands to a key.
Could you point to an example on how it can be done?
71 commented
Hey there,
Dance provides a dance.run
command that can run multiple commands in a row. The following example is given in the documentation:
{
"command": "dance.run",
"args": {
"commands": [
["dance.selections.saveText", { "register": "^" }],
{
"command": "dance.modes.set",
"args": { "input": "normal" },
},
"hideSuggestWidget",
],
},
},
yerlaser commented
Thank you!