Last active
November 3, 2023 07:03
-
-
Save zetashift/22f5a66eb5cf6ca86c1fc695f7421247 to your computer and use it in GitHub Desktop.
Dance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "space", | |
"command": "dance.openMenu", | |
"args": { | |
"input": "leader" | |
}, | |
"when": "!inputFocus || editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "f1", | |
"command": "dance.openMenu", | |
"args": { | |
"input": "leader" | |
} | |
}, | |
{ | |
"key": "escape", | |
"command": "workbench.action.toggleSidebarVisibility", | |
"when": "sideBarFocus && inputFocus && !search.action.focusQueryEditorWidget" | |
}, | |
{ | |
"key": "escape", | |
"command": "workbench.action.toggleSidebarVisibility", | |
"when": "filesExplorerFocus && explorerResourceIsRoot" | |
}, | |
{ | |
"key": "capslock a", | |
"when": "editorTextFocus && dance.mode == 'normal'", | |
"title": "Insert at line end", | |
"command": "dance.modes.insert.lineEnd" | |
}, | |
{ | |
"key": "tab", | |
"command": "selectNextQuickFix", | |
"when": "editorFocus && quickFixWidgetVisible" | |
}, | |
{ | |
"key": "shift+tab", | |
"command": "selectPrevQuickFix", | |
"when": "editorFocus && quickFixWidgetVisible" | |
}, | |
{ | |
"key": "tab", | |
"command": "selectNextSuggestion", | |
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" | |
}, | |
{ | |
"key": "shift+tab", | |
"command": "selectPrevSuggestion", | |
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" | |
}, | |
{ | |
"key": "g d", | |
"command": "editor.action.goToDeclaration", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g r", | |
"command": "editor.action.goToReferences", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g c", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g b", | |
"command": "workbench.action.navigateBack", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g h", | |
"command": "editor.action.showHover", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g ]", | |
"command": "editor.action.marker.next", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "] d", | |
"command": "editor.action.marker.next", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g [", | |
"command": "editor.action.marker.prev", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "[ d", | |
"command": "editor.action.marker.prev", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g n", | |
"command": "workbench.action.navigateForward", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g g", | |
"command": "dance.select.firstLine.jump", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "g e", | |
"command": "dance.select.lastLine.jump", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "- -", | |
"command": "dance.selections.reduce", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": ";", | |
"command": "-dance.selections.reduce", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": ";", | |
"command": "dance.selections.clear.secondary", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "space", | |
"command": "-dance.selections.clear.secondary", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "shift+x", | |
"command": "dance.select.line.below", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "x", | |
"command": "-dance.select.line.below", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "x", | |
"command": "dance.select.line.below.extend", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "shift+x", | |
"command": "-dance.select.line.below.extend", | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "'", | |
"command": "dance.openMenu", | |
"args": { | |
"menu": { | |
"items": { | |
"l": { | |
"text": "character left", | |
"command": "dance.run", | |
"args": { | |
"commands": [ | |
".select.left.extend", | |
".selections.changeDirection", | |
".select.right.extend", | |
".selections.changeDirection" | |
] | |
} | |
}, | |
"h": { | |
"text": "character right", | |
"command": "dance.run", | |
"args": { | |
"commands": [ | |
".select.right.extend", | |
".selections.changeDirection", | |
".select.left.extend", | |
".selections.changeDirection" | |
] | |
} | |
}, | |
"j": { | |
"text": "line down", | |
"command": "dance.run", | |
"args": { | |
"commands": [ | |
".select.down.extend", | |
".selections.changeDirection", | |
".select.up.extend", | |
".selections.changeDirection" | |
] | |
} | |
}, | |
"k": { | |
"text": "line up", | |
"command": "dance.run", | |
"args": { | |
"commands": [ | |
".select.up.extend", | |
".selections.changeDirection", | |
".select.down.extend", | |
".selections.changeDirection" | |
] | |
} | |
}, | |
"(": { | |
"text": "(surround)", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '(' + x + ')')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "(" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": ")" | |
} | |
] | |
] | |
} | |
}, | |
"{": { | |
"text": "{surround}", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '{' + x + '}')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "{" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": "}" | |
} | |
] | |
] | |
} | |
}, | |
"[": { | |
"text": "[surround]", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '[' + x + ']')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "[" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": "]" | |
} | |
] | |
] | |
} | |
}, | |
"<": { | |
"text": "<surround>", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '<' + x + '>')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "<" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": ">" | |
} | |
] | |
] | |
} | |
}, | |
"\"": { | |
"text": "\"surround\"", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '\"' + x + '\"')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "\"" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": "\"" | |
} | |
] | |
] | |
} | |
}, | |
"'": { | |
"text": "'surround'", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => `'` + x + `'`)", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "'" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": "'" | |
} | |
] | |
] | |
} | |
}, | |
"`": { | |
"text": "`surround`", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '`' + x + '`')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ | |
"where": "start", | |
"shift": "extend", | |
"text": "`" | |
} | |
], | |
[ | |
".edit.insert", | |
{ | |
"where": "end", | |
"shift": "extend", | |
"text": "`" | |
} | |
] | |
] | |
} | |
}, | |
"d": { | |
"text": "delete surround", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => x.slice(1, -1))", | |
"commands": [ | |
".selections.save", | |
".selections.reduce.edges", | |
".edit.delete", | |
".selections.restore" | |
] | |
} | |
} | |
} | |
}, | |
"locked": true | |
}, | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "ctrl+k ctrl+i", | |
"command": "-editor.action.showHover", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+f8", | |
"command": "-editor.action.marker.next", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+alt+f8", | |
"command": "-editor.action.marker.prev", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "m", | |
"command": "dance.openMenu", | |
"args": { | |
"menu": { | |
"items": { | |
"i": { | |
"text": "select inner object", | |
"command": "dance.seek.askObject.inner" | |
}, | |
"a": { | |
"text": "select object", | |
"command": "dance.seek.askObject" | |
}, | |
"e": { | |
"text": "select till line end", | |
"command": "dance.select.lineEnd.extend" | |
}, | |
"s": { | |
"text": "surround around object", | |
"command": "dance.openMenu", | |
"args": { | |
"menu": { | |
"items": { | |
"(": { | |
"text": "(surround)", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '(' + x + ')')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "(" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": ")" } | |
] | |
] | |
} | |
}, | |
"{": { | |
"text": "{surround}", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '{' + x + '}')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "{" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": "}" } | |
] | |
] | |
} | |
}, | |
"[": { | |
"text": "[surround]", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '[' + x + ']')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "[" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": "]" } | |
] | |
] | |
} | |
}, | |
"<": { | |
"text": "<surround>", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '<' + x + '>')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "<" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": ">" } | |
] | |
] | |
} | |
}, | |
"\"": { | |
"text": "\"surround\"", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '\"' + x + '\"')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "\"" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": "\"" } | |
] | |
] | |
} | |
}, | |
"'": { | |
"text": "'surround'", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => `'` + x + `'`)", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "'" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": "'" } | |
] | |
] | |
} | |
}, | |
"`": { | |
"text": "`surround`", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => '`' + x + '`')", | |
"commands": [ | |
[ | |
".edit.insert", | |
{ "where": "start", "shift": "extend", "text": "`" } | |
], | |
[ | |
".edit.insert", | |
{ "where": "end", "shift": "extend", "text": "`" } | |
] | |
] | |
} | |
} | |
} | |
} | |
} | |
}, | |
"d": { | |
"text": "delete surround", | |
"command": "dance.run", | |
"args": { | |
"input": "await replace((x) => x.slice(1, -1))", | |
"commands": [ | |
".selections.save", | |
".selections.reduce.edges", | |
".edit.delete", | |
".selections.restore" | |
] | |
} | |
} | |
} | |
} | |
}, | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "v", | |
"command": "dance.modes.set", | |
"args": { "input": "extend-select" }, | |
"when": "editorTextFocus && dance.mode == 'normal'" | |
}, | |
{ | |
"key": "escape", | |
"command": "dance.modes.set.normal", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"key": "v", | |
"command": "dance.modes.set", | |
"args": { "input": "normal" }, | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "'", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": ",", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "Shift+6", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "Shift+3", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "Shift+2", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "Shift+Y", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"command": "dance.ignore", | |
"key": "Shift+D", | |
"when": "editorTextFocus && dance.mode == 'extend-select'" | |
}, | |
{ | |
"key": "Shift+Alt+0", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Rotate selections counter-clockwise (selections only)", | |
"command": "dance.selections.rotate.selections.reverse" | |
}, | |
{ | |
"key": "Shift+Alt+9", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Rotate selections clockwise (selections only)", | |
"command": "dance.selections.rotate.selections" | |
}, | |
{ | |
"key": "Shift+0", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Rotate selections counter-clockwise", | |
"command": "dance.selections.rotate.both.reverse" | |
}, | |
{ | |
"key": "Shift+9", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Rotate selections clockwise", | |
"command": "dance.selections.rotate.both" | |
}, | |
{ | |
"key": "Shift+-", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Trim whitespace", | |
"command": "dance.selections.trimWhitespace" | |
}, | |
{ | |
"key": "Shift+Alt+X", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Trim lines", | |
"command": "dance.selections.trimLines" | |
}, | |
{ | |
"key": "Enter", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Toggle selection indices", | |
"command": "dance.selections.toggleIndices" | |
}, | |
{ | |
"key": "Alt+S", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Split selections at line boundaries", | |
"command": "dance.selections.splitLines" | |
}, | |
{ | |
"key": "Shift+S", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Split selections", | |
"command": "dance.selections.split" | |
}, | |
{ | |
"key": "S", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select within selections", | |
"command": "dance.selections.select" | |
}, | |
{ | |
"key": "Y", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy selections text", | |
"command": "dance.selections.saveText" | |
}, | |
{ | |
"key": "Shift+Z", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Save selections", | |
"command": "dance.selections.save" | |
}, | |
{ | |
"key": "Shift+Alt+Z", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "dance.selections.restore.withCurrent", | |
"args": { | |
"reverse": true | |
} | |
}, | |
{ | |
"key": "Alt+Z", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Combine register selections with current ones", | |
"command": "dance.selections.restore.withCurrent" | |
}, | |
{ | |
"key": "Z", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Restore selections", | |
"command": "dance.selections.restore" | |
}, | |
{ | |
"key": "Shift+Alt+S", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Reduce selections to their ends", | |
"command": "dance.selections.reduce.edges" | |
}, | |
{ | |
"key": ";", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Reduce selections to their cursor", | |
"command": "dance.selections.reduce" | |
}, | |
{ | |
"key": "Shift+\\", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Pipe and replace", | |
"command": "dance.selections.pipe.replace" | |
}, | |
{ | |
"key": "Shift+Alt+1", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Pipe and prepend", | |
"command": "dance.selections.pipe.prepend" | |
}, | |
{ | |
"key": "Shift+1", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Pipe and append", | |
"command": "dance.selections.pipe.append" | |
}, | |
{ | |
"key": "Shift+Alt+\\", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Pipe selections", | |
"command": "dance.selections.pipe" | |
}, | |
{ | |
"key": "Shift+Alt+-", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Merge contiguous selections", | |
"command": "dance.selections.merge" | |
}, | |
{ | |
"key": "Shift+Alt+K", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Clear matching selections", | |
"command": "dance.selections.filter.regexp.inverse" | |
}, | |
{ | |
"key": "Alt+K", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Keep matching selections", | |
"command": "dance.selections.filter.regexp" | |
}, | |
{ | |
"key": "Shift+4", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Filter selections", | |
"command": "dance.selections.filter" | |
}, | |
{ | |
"key": "Shift+Alt+;", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Forward selections", | |
"command": "dance.selections.faceForward" | |
}, | |
{ | |
"key": "Alt+X", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Expand to lines", | |
"command": "dance.selections.expandToLines" | |
}, | |
{ | |
"key": "Shift+Alt+C", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy selections above", | |
"command": "dance.selections.copy.above" | |
}, | |
{ | |
"key": "Shift+C", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy selections below", | |
"command": "dance.selections.copy" | |
}, | |
{ | |
"key": "Space", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Clear secondary selections", | |
"command": "dance.selections.clear.secondary" | |
}, | |
{ | |
"key": "Alt+Space", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Clear main selections", | |
"command": "dance.selections.clear.main" | |
}, | |
{ | |
"key": "Alt+;", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Change direction of selections", | |
"command": "dance.selections.changeDirection" | |
}, | |
{ | |
"key": "Ctrl+U", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "dance.select.vertically", | |
"args": { | |
"direction": -1, | |
"by": "halfPage" | |
} | |
}, | |
{ | |
"key": "Ctrl+B", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "dance.select.vertically", | |
"args": { | |
"direction": -1, | |
"by": "page" | |
} | |
}, | |
{ | |
"key": "Ctrl+D", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "dance.select.vertically", | |
"args": { | |
"direction": 1, | |
"by": "halfPage" | |
} | |
}, | |
{ | |
"key": "Ctrl+F", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "dance.select.vertically", | |
"args": { | |
"direction": 1, | |
"by": "page" | |
} | |
}, | |
{ | |
"key": "Up", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend up", | |
"command": "dance.select.up.extend" | |
}, | |
{ | |
"key": "Shift+Up", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend up", | |
"command": "dance.select.up.extend" | |
}, | |
{ | |
"key": "K", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend up", | |
"command": "dance.select.up.extend" | |
}, | |
{ | |
"key": "Shift+K", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend up", | |
"command": "dance.select.up.extend" | |
}, | |
{ | |
"key": "G", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to", | |
"command": "dance.select.to.extend" | |
}, | |
{ | |
"key": "Shift+G", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to", | |
"command": "dance.select.to.extend" | |
}, | |
{ | |
"key": "Right", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend right", | |
"command": "dance.select.right.extend" | |
}, | |
{ | |
"key": "Shift+Right", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend right", | |
"command": "dance.select.right.extend" | |
}, | |
{ | |
"key": "L", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend right", | |
"command": "dance.select.right.extend" | |
}, | |
{ | |
"key": "Shift+L", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend right", | |
"command": "dance.select.right.extend" | |
}, | |
{ | |
"key": "Home", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line start", | |
"command": "dance.select.lineStart.extend" | |
}, | |
{ | |
"key": "Shift+Home", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line start", | |
"command": "dance.select.lineStart.extend" | |
}, | |
{ | |
"key": "Alt+H", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line start", | |
"command": "dance.select.lineStart.extend" | |
}, | |
{ | |
"key": "Shift+Alt+H", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line start", | |
"command": "dance.select.lineStart.extend" | |
}, | |
{ | |
"key": "Home", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select to line start", | |
"command": "dance.select.lineStart" | |
}, | |
{ | |
"key": "End", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line end", | |
"command": "dance.select.lineEnd.extend" | |
}, | |
{ | |
"key": "Shift+End", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line end", | |
"command": "dance.select.lineEnd.extend" | |
}, | |
{ | |
"key": "Alt+L", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line end", | |
"command": "dance.select.lineEnd.extend" | |
}, | |
{ | |
"key": "Shift+Alt+L", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line end", | |
"command": "dance.select.lineEnd.extend" | |
}, | |
{ | |
"key": "End", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select to line end", | |
"command": "dance.select.lineEnd" | |
}, | |
{ | |
"key": "X", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line below", | |
"command": "dance.select.line.below.extend" | |
}, | |
{ | |
"key": "Shift+X", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to line below", | |
"command": "dance.select.line.below.extend" | |
}, | |
{ | |
"key": "Left", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend left", | |
"command": "dance.select.left.extend" | |
}, | |
{ | |
"key": "Shift+Left", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend left", | |
"command": "dance.select.left.extend" | |
}, | |
{ | |
"key": "H", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend left", | |
"command": "dance.select.left.extend" | |
}, | |
{ | |
"key": "Shift+H", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend left", | |
"command": "dance.select.left.extend" | |
}, | |
{ | |
"key": "Down", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend down", | |
"command": "dance.select.down.extend" | |
}, | |
{ | |
"key": "Shift+Down", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend down", | |
"command": "dance.select.down.extend" | |
}, | |
{ | |
"key": "J", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend down", | |
"command": "dance.select.down.extend" | |
}, | |
{ | |
"key": "Shift+J", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend down", | |
"command": "dance.select.down.extend" | |
}, | |
{ | |
"key": "Shift+5", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select whole buffer", | |
"command": "dance.select.buffer" | |
}, | |
{ | |
"key": "Alt+E", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next non-whitespace word end", | |
"command": "dance.seek.wordEnd.ws.extend" | |
}, | |
{ | |
"key": "Shift+Alt+E", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next non-whitespace word end", | |
"command": "dance.seek.wordEnd.ws.extend" | |
}, | |
{ | |
"key": "E", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next word end", | |
"command": "dance.seek.wordEnd.extend" | |
}, | |
{ | |
"key": "Shift+E", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next word end", | |
"command": "dance.seek.wordEnd.extend" | |
}, | |
{ | |
"key": "Alt+B", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous non-whitespace word start", | |
"command": "dance.seek.word.ws.extend.backward" | |
}, | |
{ | |
"key": "Shift+Alt+B", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous non-whitespace word start", | |
"command": "dance.seek.word.ws.extend.backward" | |
}, | |
{ | |
"key": "Alt+W", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next non-whitespace word start", | |
"command": "dance.seek.word.ws.extend" | |
}, | |
{ | |
"key": "Shift+Alt+W", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next non-whitespace word start", | |
"command": "dance.seek.word.ws.extend" | |
}, | |
{ | |
"key": "B", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous word start", | |
"command": "dance.seek.word.extend.backward" | |
}, | |
{ | |
"key": "Shift+B", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous word start", | |
"command": "dance.seek.word.extend.backward" | |
}, | |
{ | |
"key": "W", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next word start", | |
"command": "dance.seek.word.extend" | |
}, | |
{ | |
"key": "Shift+W", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next word start", | |
"command": "dance.seek.word.extend" | |
}, | |
{ | |
"key": "Alt+F", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (included, backward)", | |
"command": "dance.seek.included.extend.backward" | |
}, | |
{ | |
"key": "Shift+Alt+F", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (included, backward)", | |
"command": "dance.seek.included.extend.backward" | |
}, | |
{ | |
"key": "F", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (included)", | |
"command": "dance.seek.included.extend" | |
}, | |
{ | |
"key": "Shift+F", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (included)", | |
"command": "dance.seek.included.extend" | |
}, | |
{ | |
"key": "Alt+T", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (excluded, backward)", | |
"command": "dance.seek.extend.backward" | |
}, | |
{ | |
"key": "Shift+Alt+T", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (excluded, backward)", | |
"command": "dance.seek.extend.backward" | |
}, | |
{ | |
"key": "T", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (excluded)", | |
"command": "dance.seek.extend" | |
}, | |
{ | |
"key": "Shift+T", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to character (excluded)", | |
"command": "dance.seek.extend" | |
}, | |
{ | |
"key": "Alt+M", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous enclosing character", | |
"command": "dance.seek.enclosing.extend.backward" | |
}, | |
{ | |
"key": "Shift+Alt+M", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to previous enclosing character", | |
"command": "dance.seek.enclosing.extend.backward" | |
}, | |
{ | |
"key": "M", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next enclosing character", | |
"command": "dance.seek.enclosing.extend" | |
}, | |
{ | |
"key": "Shift+M", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to next enclosing character", | |
"command": "dance.seek.enclosing.extend" | |
}, | |
{ | |
"key": "[", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to whole object start", | |
"command": "dance.seek.askObject.start.extend" | |
}, | |
{ | |
"key": "Shift+[", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to whole object start", | |
"command": "dance.seek.askObject.start.extend" | |
}, | |
{ | |
"key": "Alt+[", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to inner object start", | |
"command": "dance.seek.askObject.inner.start.extend" | |
}, | |
{ | |
"key": "Shift+Alt+[", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to inner object start", | |
"command": "dance.seek.askObject.inner.start.extend" | |
}, | |
{ | |
"key": "Alt+]", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to inner object end", | |
"command": "dance.seek.askObject.inner.end.extend" | |
}, | |
{ | |
"key": "Shift+Alt+]", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to inner object end", | |
"command": "dance.seek.askObject.inner.end.extend" | |
}, | |
{ | |
"key": "Alt+I", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select inner object", | |
"command": "dance.seek.askObject.inner" | |
}, | |
{ | |
"key": "]", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to whole object end", | |
"command": "dance.seek.askObject.end.extend" | |
}, | |
{ | |
"key": "Shift+]", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Extend to whole object end", | |
"command": "dance.seek.askObject.end.extend" | |
}, | |
{ | |
"key": "Alt+A", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select whole object", | |
"command": "dance.seek.askObject" | |
}, | |
{ | |
"key": "T", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select to character (excluded)", | |
"command": "dance.seek" | |
}, | |
{ | |
"key": "Shift+8", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search current selection (smart)", | |
"command": "dance.search.selection.smart" | |
}, | |
{ | |
"key": "Shift+Alt+8", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search current selection", | |
"command": "dance.search.selection" | |
}, | |
{ | |
"key": "Alt+N", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add previous match", | |
"command": "dance.search.previous.add" | |
}, | |
{ | |
"key": "Shift+Alt+N", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add previous match", | |
"command": "dance.search.previous.add" | |
}, | |
{ | |
"key": "N", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add next match", | |
"command": "dance.search.next.add" | |
}, | |
{ | |
"key": "Shift+N", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add next match", | |
"command": "dance.search.next.add" | |
}, | |
{ | |
"key": "/", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search (extend)", | |
"command": "dance.search.extend" | |
}, | |
{ | |
"key": "Shift+/", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search (extend)", | |
"command": "dance.search.extend" | |
}, | |
{ | |
"key": "Alt+/", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search backward (extend)", | |
"command": "dance.search.backward.extend" | |
}, | |
{ | |
"key": "Shift+Alt+/", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Search backward (extend)", | |
"command": "dance.search.backward.extend" | |
}, | |
{ | |
"key": "Ctrl+V", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Temporary Insert mode", | |
"command": "dance.modes.set.temporarily.insert" | |
}, | |
{ | |
"key": "Shift+I", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert at line start", | |
"command": "dance.modes.insert.lineStart" | |
}, | |
{ | |
"key": "Shift+A", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert at line end", | |
"command": "dance.modes.insert.lineEnd" | |
}, | |
{ | |
"key": "I", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert before", | |
"command": "dance.modes.insert.before" | |
}, | |
{ | |
"key": "A", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert after", | |
"command": "dance.modes.insert.after" | |
}, | |
{ | |
"key": "Shift+;", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"command": "workbench.action.showCommands" | |
}, | |
{ | |
"key": "9", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 9 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 9 | |
} | |
}, | |
{ | |
"key": "8", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 8 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 8 | |
} | |
}, | |
{ | |
"key": "7", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 7 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 7 | |
} | |
}, | |
{ | |
"key": "6", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 6 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 6 | |
} | |
}, | |
{ | |
"key": "5", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 5 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 5 | |
} | |
}, | |
{ | |
"key": "4", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 4 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 4 | |
} | |
}, | |
{ | |
"key": "3", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 3 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 3 | |
} | |
}, | |
{ | |
"key": "2", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 2 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 2 | |
} | |
}, | |
{ | |
"key": "1", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 1 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 1 | |
} | |
}, | |
{ | |
"key": "0", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Add the digit 0 to the counter", | |
"command": "dance.updateCount", | |
"args": { | |
"addDigits": 0 | |
} | |
}, | |
{ | |
"key": "Shift+'", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Select register for next command", | |
"command": "dance.selectRegister" | |
}, | |
{ | |
"key": "Alt+U", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Undo a change of selections", | |
"command": "dance.history.undo.selections" | |
}, | |
{ | |
"key": "U", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Undo", | |
"command": "dance.history.undo" | |
}, | |
{ | |
"key": "Alt+.", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Repeat last seek", | |
"command": "dance.history.repeat.seek" | |
}, | |
{ | |
"key": ".", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Repeat last edit without a command", | |
"command": "dance.history.repeat.edit" | |
}, | |
{ | |
"key": "Shift+Alt+U", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Redo a change of selections", | |
"command": "dance.history.redo.selections" | |
}, | |
{ | |
"key": "Shift+U", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Redo", | |
"command": "dance.history.redo" | |
}, | |
{ | |
"key": "Escape", | |
"when": "editorTextFocus && dance.mode == 'extend-select' && dance.isRecording", | |
"title": "Stop recording", | |
"command": "dance.history.recording.stop" | |
}, | |
{ | |
"key": "Shift+Q", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Start recording", | |
"command": "dance.history.recording.start" | |
}, | |
{ | |
"key": "Q", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Replay recording", | |
"command": "dance.history.recording.play" | |
}, | |
{ | |
"key": "Shift+R", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy and replace", | |
"command": "dance.edit.yank-replace" | |
}, | |
{ | |
"key": "C", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy, delete and switch to Insert", | |
"command": "dance.edit.yank-delete-insert" | |
}, | |
{ | |
"key": "D", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy and delete", | |
"command": "dance.edit.yank-delete" | |
}, | |
{ | |
"key": "Ctrl+R", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Pick register and replace", | |
"command": "dance.edit.selectRegister-insert" | |
}, | |
{ | |
"key": "R", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Replace characters", | |
"command": "dance.edit.replaceCharacters" | |
}, | |
{ | |
"key": "Shift+Alt+P", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Paste before and select", | |
"command": "dance.edit.paste.before.select" | |
}, | |
{ | |
"key": "Shift+P", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Paste before", | |
"command": "dance.edit.paste.before" | |
}, | |
{ | |
"key": "Alt+P", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Paste after and select", | |
"command": "dance.edit.paste.after.select" | |
}, | |
{ | |
"key": "P", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Paste after", | |
"command": "dance.edit.paste.after" | |
}, | |
{ | |
"key": "O", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert new line below and switch to insert", | |
"command": "dance.edit.newLine.below.insert" | |
}, | |
{ | |
"key": "Alt+O", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert new line below each selection", | |
"command": "dance.edit.newLine.below" | |
}, | |
{ | |
"key": "Shift+O", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert new line above and switch to insert", | |
"command": "dance.edit.newLine.above.insert" | |
}, | |
{ | |
"key": "Shift+Alt+O", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert new line above each selection", | |
"command": "dance.edit.newLine.above" | |
}, | |
{ | |
"key": "Shift+Alt+J", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Join lines and select inserted separators", | |
"command": "dance.edit.join.select" | |
}, | |
{ | |
"key": "Alt+J", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Join lines", | |
"command": "dance.edit.join" | |
}, | |
{ | |
"key": "Shift+Alt+R", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Insert contents of register", | |
"command": "dance.edit.insert" | |
}, | |
{ | |
"key": "Shift+Alt+.", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Indent selected lines (including empty lines)", | |
"command": "dance.edit.indent.withEmpty" | |
}, | |
{ | |
"key": "Shift+.", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Indent selected lines", | |
"command": "dance.edit.indent" | |
}, | |
{ | |
"key": "Alt+C", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Delete and switch to Insert", | |
"command": "dance.edit.delete-insert" | |
}, | |
{ | |
"key": "Alt+D", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Delete", | |
"command": "dance.edit.delete" | |
}, | |
{ | |
"key": "Shift+,", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Deindent selected lines (including incomplete indent)", | |
"command": "dance.edit.deindent.withIncomplete" | |
}, | |
{ | |
"key": "Shift+Alt+,", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Deindent selected lines", | |
"command": "dance.edit.deindent" | |
}, | |
{ | |
"key": "Shift+Alt+7", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Copy indentation", | |
"command": "dance.edit.copyIndentation" | |
}, | |
{ | |
"key": "Shift+`", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Transform to upper case", | |
"command": "dance.edit.case.toUpper" | |
}, | |
{ | |
"key": "`", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Transform to lower case", | |
"command": "dance.edit.case.toLower" | |
}, | |
{ | |
"key": "Alt+`", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Swap case", | |
"command": "dance.edit.case.swap" | |
}, | |
{ | |
"key": "Shift+7", | |
"when": "editorTextFocus && dance.mode == 'extend-select'", | |
"title": "Align selections", | |
"command": "dance.edit.align" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontFamily": "'Iosevka Term'", | |
"editor.fontSize": 21, | |
"editor.fontLigatures": true, | |
"editor.minimap.enabled": false, | |
"editor.bracketPairColorization.enabled": true, | |
"dance.modes": { | |
"extend-select": { | |
"cursorStyle": "block" | |
}, | |
"insert": { | |
"cursorStyle": "line-thin", | |
"decorations": { | |
"applyTo": "main", | |
"backgroundColor": "#282a36", | |
"isWholeLine": true | |
} | |
}, | |
"normal": { | |
// "cursorStyle": "block", | |
// "selectionBehavior": "character", | |
"decorations": { | |
"applyTo": "main", | |
"backgroundColor": "#54546D", | |
"isWholeLine": false | |
} | |
} | |
}, | |
"dance.menus": { | |
"leader": { | |
"items": { | |
"f": { | |
"text": "file", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "file" | |
} | |
] | |
}, | |
"n": { | |
"text": "notes", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "notes" | |
} | |
] | |
}, | |
"b": { | |
"text": "buffer", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "buffer" | |
} | |
] | |
}, | |
"w": { | |
"text": "window", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "window" | |
} | |
] | |
}, | |
"g": { | |
"text": "git", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "magit" | |
} | |
] | |
}, | |
"i": { | |
"text": "insert", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "insert" | |
} | |
] | |
}, | |
"a": { | |
"text": "anchor", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "anchor" | |
} | |
] | |
}, | |
"c": { | |
"text": "code", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "code" | |
} | |
] | |
}, | |
"o": { | |
"text": "open", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "open" | |
} | |
] | |
}, | |
"t": { | |
"text": "toggle", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "toggle" | |
} | |
] | |
}, | |
"p": { | |
"text": "project", | |
"command": "dance.openMenu", | |
"args": [ | |
{ | |
"input": "project" | |
} | |
] | |
}, | |
",": { | |
"text": "switch to open file", | |
"command": "workbench.action.showAllEditors" | |
}, | |
" ": { | |
"text": "quick open file", | |
"command": "workbench.action.quickOpen" | |
} | |
} | |
}, | |
"anchor": { | |
"items": { | |
"a": { | |
"text": "place anchor", | |
"command": "editor.action.setSelectionAnchor" | |
}, | |
"s": { | |
"text": "select to anchor", | |
"command": "editor.action.selectFromAnchorToCursor" | |
}, | |
"g": { | |
"text": "go to anchor", | |
"command": "editor.action.goToSelectionAnchor" | |
} | |
} | |
}, | |
"code": { | |
"items": { | |
"F": { | |
"text": "format file with", | |
"command": "editor.action.formatDocument.multiple" | |
}, | |
"f": { | |
"text": "format file", | |
"command": "editor.action.formatDocument" | |
}, | |
"r": { | |
"text": "rename symbol", | |
"command": "editor.action.rename" | |
}, | |
"s": { | |
"text": "swap words", | |
"command": "extension.swapWord" | |
}, | |
"a": { | |
"text": "sort lines ascending", | |
"command": "editor.action.sortLinesAscending" | |
}, | |
"d": { | |
"text": "sort lines descending", | |
"command": "editor.action.sortLinesDescending" | |
}, | |
"t": { | |
"text": "trim trailing whitespace", | |
"command": "editor.action.trimTrailingWhitespace" | |
}, | |
"p": { | |
"text": "format selection", | |
"command": "editor.action.formatSelection" | |
}, | |
"c": { | |
"text": "open settings", | |
"command": "workbench.action.openSettingsJson" | |
} | |
} | |
}, | |
"insert": { | |
"items": { | |
"s": { | |
"text": "snippet", | |
"command": "editor.action.showSnippets" | |
}, | |
"D": { | |
"text": "formatted datetime...", | |
"command": "insertDateString.insertOwnFormatDateTime" | |
}, | |
"u": { | |
"text": "timestamp", | |
"command": "insertDateString.insertTimestamp" | |
}, | |
"t": { | |
"text": "datetime", | |
"command": "insertDateString.insertDateTime" | |
}, | |
"d": { | |
"text": "date", | |
"command": "insertDateString.insertDate" | |
}, | |
"T": { | |
"text": "time", | |
"command": "insertDateString.insertTime" | |
}, | |
"0": { | |
"text": "count from 0", | |
"command": "dance.pipe.append", | |
"args": [ | |
{ | |
"input": "i" | |
} | |
] | |
}, | |
"1": { | |
"text": "count from 1", | |
"command": "dance.pipe.append", | |
"args": [ | |
{ | |
"input": "i+1" | |
} | |
] | |
} | |
} | |
}, | |
"toggle": { | |
"items": { | |
"w": { | |
"text": "word wrap", | |
"command": "editor.action.toggleWordWrap" | |
}, | |
"z": { | |
"text": "zen", | |
"command": "workbench.action.toggleZenMode" | |
}, | |
"h": { | |
"text": "highlight", | |
"command": "textmarker.toggleHighlight" | |
}, | |
"s": { | |
"text": "whitespace", | |
"command": "editor.action.toggleRenderWhitespace" | |
}, | |
"c": { | |
"text": "control characters", | |
"command": "editor.action.toggleRenderControlCharacter" | |
}, | |
"e": { | |
"text": "excluded files", | |
"command": "toggleexcludedfiles.toggle" | |
}, | |
"b": { | |
"text": "bookmark", | |
"command": "bookmarks.toggle" | |
}, | |
"A": { | |
"text": "activity bar", | |
"command": "workbench.action.toggleActivityBarVisibility" | |
}, | |
"B": { | |
"text": "breacdrumbs", | |
"command": "breadcrumbs.toggle" | |
} | |
} | |
}, | |
"open": { | |
"items": { | |
"v": { | |
"text": "view...", | |
"command": "workbench.action.openView" | |
}, | |
"t": { | |
"text": "toggle terminal", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
"T": { | |
"text": "new terminal here", | |
"command": "workbench.action.terminal.newWithCwd", | |
"args": [ | |
{ | |
"cwd": "${fileDirname}" | |
} | |
] | |
}, | |
"p": { | |
"text": "toggle sidebar", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
"P": { | |
"text": "sidebar", | |
"command": "workbench.action.focusSideBar" | |
}, | |
"g": { | |
"text": "SCM", | |
"command": "workbench.view.scm" | |
}, | |
"G": { | |
"text": "Git Graph", | |
"command": "git-graph.view" | |
}, | |
"x": { | |
"text": "extensions", | |
"command": "workbench.view.extensions" | |
}, | |
"e": { | |
"text": "explorer", | |
"command": "workbench.view.explorer" | |
}, | |
"d": { | |
"text": "debug", | |
"command": "workbench.view.debug" | |
}, | |
"s": { | |
"text": "search", | |
"command": "workbench.view.search" | |
}, | |
"c": { | |
"text": "problems", | |
"command": "workbench.actions.view.problems" | |
} | |
} | |
}, | |
"file": { | |
"items": { | |
"f": { | |
"text": "find in files", | |
"command": "workbench.action.findInFiles" | |
}, | |
"l": { | |
"text": "set language mode", | |
"command": "workbench.action.editor.changeLanguageMode" | |
}, | |
"r": { | |
"text": "recent files", | |
"command": "workbench.action.openRecent" | |
}, | |
"O": { | |
"text": "reopen with...", | |
"command": "workbench.files.action.reopenWithEditor" | |
}, | |
"s": { | |
"text": "save file", | |
"command": "workbench.action.files.save" | |
}, | |
"t": { | |
"text": "Toggle file tree", | |
"command": "workbench.view.explorer" | |
}, | |
"w": { | |
"text": "save file without formatting", | |
"command": "workbench.action.files.saveWithoutFormatting" | |
}, | |
"n": { | |
"text": "new file", | |
"command": "workbench.action.files.newUntitledFile" | |
}, | |
"e": { | |
"text": "reveal in sidebar", | |
"command": "workbench.files.action.showActiveFileInExplorer" | |
}, | |
"R": { | |
"text": "rename", | |
"command": "fileutils.renameFile" | |
}, | |
"P": { | |
"text": "open settings", | |
"command": "workbench.action.openSettingsJson" | |
}, | |
"K": { | |
"text": "open keyboard shortcuts", | |
"command": "workbench.action.openGlobalKeybindingsFile" | |
} | |
} | |
}, | |
"window": { | |
"items": { | |
"w": { | |
"text": "navigate groups", | |
"command": "workbench.action.navigateEditorGroups" | |
}, | |
"d": { | |
"text": "close group, keep editors", | |
"command": "workbench.action.joinTwoGroups" | |
}, | |
"D": { | |
"text": "close group and editors", | |
"command": "workbench.action.closeEditorsInGroup" | |
}, | |
"v": { | |
"text": "vertical split", | |
"command": "workbench.action.splitEditor" | |
}, | |
"s": { | |
"text": "horizontal split", | |
"command": "workbench.action.splitEditorOrthogonal" | |
}, | |
"r": { | |
"text": "rotate", | |
"command": "workbench.action.toggleEditorGroupLayout" | |
}, | |
"m": { | |
"text": "toggle maximize", | |
"command": "workbench.action.toggleEditorWidths" | |
}, | |
"o": { | |
"text": "merge all groups", | |
"command": "workbench.action.joinAllGroups" | |
}, | |
"g": { | |
"text": "show editors in group", | |
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup" | |
}, | |
"h": { | |
"text": "focus left group", | |
"command": "workbench.action.focusLeftGroup" | |
}, | |
"j": { | |
"text": "focus below group", | |
"command": "workbench.action.focusBelowGroup" | |
}, | |
"k": { | |
"text": "focus above group", | |
"command": "workbench.action.focusAboveGroup" | |
}, | |
"l": { | |
"text": "focus right group", | |
"command": "workbench.action.focusRightGroup" | |
}, | |
"H": { | |
"text": "move group left", | |
"command": "workbench.action.moveActiveEditorGroupLeft" | |
}, | |
"J": { | |
"text": "move group below", | |
"command": "workbench.action.moveActiveEditorGroupDown" | |
}, | |
"K": { | |
"text": "move group above", | |
"command": "workbench.action.moveActiveEditorGroupUp" | |
}, | |
"L": { | |
"text": "move group right", | |
"command": "workbench.action.moveActiveEditorGroupRight" | |
} | |
} | |
}, | |
"buffer": { | |
"items": { | |
"b": { | |
"text": "list editors...", | |
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup" | |
}, | |
"d": { | |
"text": "close", | |
"command": "workbench.action.closeActiveEditor" | |
}, | |
"u": { | |
"text": "reopen closed editor", | |
"command": "workbench.action.reopenClosedEditor" | |
}, | |
"n": { | |
"text": "next editor", | |
"command": "workbench.action.openNextRecentlyUsedEditor" | |
}, | |
"r": { | |
"text": "revert editor", | |
"command": "workbench.action.files.revert" | |
}, | |
"p": { | |
"text": "previous editor", | |
"command": "workbench.action.openPreviousRecentlyUsedEditor" | |
} | |
} | |
}, | |
"magit": { | |
"items": { | |
"g": { | |
"text": "refresh", | |
"command": "magit.refresh" | |
}, | |
"f": { | |
"text": "fetching", | |
"command": "magit.fetching" | |
}, | |
"b": { | |
"text": "branching", | |
"command": "magit.branching" | |
}, | |
"m": { | |
"text": "merging", | |
"command": "magit.merging" | |
}, | |
"r": { | |
"text": "rebasing", | |
"command": "magit.rebasing" | |
}, | |
"P": { | |
"text": "pushing", | |
"command": "magit.pushing" | |
}, | |
"F": { | |
"text": "pulling", | |
"command": "magit.pulling" | |
}, | |
"z": { | |
"text": "stashing", | |
"command": "magit.stashing" | |
}, | |
"x": { | |
"text": "reset-mixed", | |
"command": "magit.reset-mixed" | |
}, | |
"X": { | |
"text": "resetting", | |
"command": "magit.resetting" | |
}, | |
"H": { | |
"text": "reset-hard", | |
"command": "magit.reset-hard" | |
}, | |
"c": { | |
"text": "commit", | |
"command": "magit.commit" | |
}, | |
"M": { | |
"text": "remoting", | |
"command": "magit.remoting" | |
}, | |
"l": { | |
"text": "logging", | |
"command": "magit.logging" | |
}, | |
"y": { | |
"text": "show-refs", | |
"command": "magit.show-refs" | |
}, | |
"d": { | |
"text": "diffing", | |
"command": "magit.diffing" | |
}, | |
"t": { | |
"text": "tagging", | |
"command": "magit.tagging" | |
}, | |
"A": { | |
"text": "cherry-picking", | |
"command": "magit.cherry-picking" | |
}, | |
"V": { | |
"text": "reverting", | |
"command": "magit.reverting" | |
}, | |
"i": { | |
"text": "ignoring", | |
"command": "magit.ignoring" | |
}, | |
"!": { | |
"text": "running", | |
"command": "magit.running" | |
}, | |
"%": { | |
"text": "worktree", | |
"command": "magit.worktree" | |
}, | |
"o": { | |
"text": "submodules", | |
"command": "magit.submodules" | |
}, | |
"k": { | |
"text": "discard", | |
"command": "magit.discard-at-point" | |
}, | |
"a": { | |
"text": "apply", | |
"command": "magit.apply-at-point" | |
}, | |
"v": { | |
"text": "reverse", | |
"command": "magit.reverse-at-point" | |
}, | |
"s": { | |
"text": "stage", | |
"command": "magit.stage" | |
}, | |
"S": { | |
"text": "stage-all", | |
"command": "magit.stage-all" | |
}, | |
"u": { | |
"text": "unstage", | |
"command": "magit.unstage" | |
}, | |
"U": { | |
"text": "unstage-all", | |
"command": "magit.unstage-all" | |
}, | |
"$": { | |
"text": "process-log", | |
"command": "magit.process-log" | |
}, | |
"?": { | |
"text": "help", | |
"command": "magit.help" | |
}, | |
"q": { | |
"text": "quit", | |
"command": "magit.quit" | |
} | |
} | |
}, | |
"project": { | |
"items": { | |
"t": { | |
"text": "test...", | |
"command": "workbench.action.tasks.test" | |
}, | |
"b": { | |
"text": "build...", | |
"command": "workbench.action.tasks.build" | |
}, | |
"r": { | |
"text": "run...", | |
"command": "workbench.action.tasks.runTask" | |
}, | |
"d": { | |
"text": "run debug", | |
"command": "workbench.action.debug.run" | |
}, | |
"D": { | |
"text": "start debug", | |
"command": "workbench.action.debug.start" | |
}, | |
"m": { | |
"text": "mark as favorite", | |
"command": "projectManager.addToFavorites" | |
}, | |
"p": { | |
"text": "open (in new window)...", | |
"command": "projectManager.listProjectsNewWindow" | |
}, | |
"P": { | |
"text": "open (in the current window)...", | |
"command": "projectManager.listProjects" | |
} | |
} | |
} | |
}, | |
"zenMode.fullScreen": false, | |
"zenMode.centerLayout": false, | |
"extensions.ignoreRecommendations": true, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.colorTheme": "Gogh Theme", | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"editor.tabSize": 2, | |
"[fsharp]": { | |
"editor.tabSize": 4, | |
"editor.insertSpaces": true | |
}, | |
"[markdown]": { | |
"editor.tabSize": 4, | |
"editor.insertSpaces": true | |
}, | |
"[jsonc]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"files.watcherExclude": { | |
"**/.bloop": true, | |
"**/.metals": true, | |
"**/.ammonite": true | |
}, | |
"editor.inlayHints.enabled": "offUnlessPressed", | |
"workbench.startupEditor": "none", | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[typescript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"editor.renderWhitespace": "none", | |
"terminal.integrated.fontSize": 18, | |
"csharp.inlayHints.parameters.forObjectCreationParameters": true, | |
"editor.formatOnType": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment