dance
dance copied to clipboard
Change keybindings
Hi there I am currently using dance and have switched back to colemak for my layout. There does not seem to be any documentation for changing the layout. How do I go about rebinding keys within Code?
Sorry if this is in the wrong place.
{ "key": "n", "where": "editorTextFocus && dance.mode == \"normal\"", "command": "dance.down" // from j },
{ "key": "Shift+n", "where": "editorTextFocus && dance.mode == \"normal\"", "command": "dance.down.extend" },
{ "key": "Alt+n", "where": "editorTextFocus && dance.mode == \"normal\"", "command": "dance.join" },
{ "key": "Shift+Alt+n", "where": "editorTextFocus && dance.mode == \"normal\"", "command": "dance.join.select" },
Did this for now (for each key to rebind) however this feels a bit hacky.
Is this the way to do it?
Hey there!
That's right, Dance key bindings are configured through the VS Code key bindings and the only two ways that I know of to configure that is through JSON (as you did) or through the built-in UI.
I kinda wanted to make it easier to configure but am not sure how to yet. Probably using Jsonnet or something, but right now it wouldn't integrate well with VS Code so I haven't done it yet.
If you have any suggestions, feel free to share them!