-
Notifications
You must be signed in to change notification settings - Fork 79
Enable or disable Dance
Grégoire Geis edited this page Nov 25, 2021
·
1 revision
Unlike, say, VSCodeVim, Dance does not
provide a "disable Dance" command or option. This is by design, since Dance
features can be selectively disabled by using a custom mode. For instance, we
can define a dummy disabled mode that will not respond to any default Dance
keybinding:
settings.json:
"dance.modes": {
"disabled": {},
},keybindings.json:
{
"key": "...",
"command": "dance.modes.set",
"args": {
"input": "disabled"
},
"when": "dance.mode != 'disabled'",
},
{
"key": "...",
"command": "dance.modes.set",
"args": {
"input": "normal"
},
"when": "dance.mode == 'disabled'",
},An advantage of using modes rather than a complete "disable Dance" command is
that other Dance features, such as dance.run and dance.openMenu, can keep
working. If you truly want to completely disable Dance for some reason, please
disable it from the VS Code extensions panel.