diff --git a/extensions/helix/package.build.ts b/extensions/helix/package.build.ts index 6f812156..c22e0c3b 100644 --- a/extensions/helix/package.build.ts +++ b/extensions/helix/package.build.ts @@ -180,7 +180,8 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({ keybindings = modules .flatMap((module) => module.keybindings) .filter((keybinding) => ["core", "helix", undefined].includes(keybinding.category)) - .map((k) => ({ ...k })); + .map(({ category, ...kb }) => kb); + for (const mode of ["normal", "select", "insert"]) { for (const keybind of keybindings) { keybind.when = keybind.when.replace(`dance.mode == '${mode}'`, `dance.mode == 'helix/${mode}'`); diff --git a/extensions/helix/package.json b/extensions/helix/package.json index 6928e837..8d9cfe88 100644 --- a/extensions/helix/package.json +++ b/extensions/helix/package.json @@ -410,287 +410,246 @@ }, "keybindings": [ { - "category": "core", "key": "Shift+7", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Align selections", "command": "dance.edit.align" }, { - "category": "helix", "key": "Shift+`", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Swap case", "command": "dance.edit.case.swap" }, { - "category": "helix", "key": "Shift+`", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Swap case", "command": "dance.edit.case.swap" }, { - "category": "core", "key": "`", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Transform to lower case", "command": "dance.edit.case.toLower" }, { - "category": "helix", "key": "`", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Transform to lower case", "command": "dance.edit.case.toLower" }, { - "category": "helix", "key": "Alt+`", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Transform to upper case", "command": "dance.edit.case.toUpper" }, { - "category": "helix", "key": "Alt+`", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Transform to upper case", "command": "dance.edit.case.toUpper" }, { - "category": "core", "key": "Shift+,", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Deindent selected lines (including incomplete indent)", "command": "dance.edit.deindent.withIncomplete" }, { - "category": "helix", "key": "Shift+,", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Deindent selected lines (including incomplete indent)", "command": "dance.edit.deindent.withIncomplete" }, { - "category": "core", "key": "Alt+D", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Delete", "command": "dance.edit.delete" }, { - "category": "helix", "key": "Alt+D", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Delete", "command": "dance.edit.delete" }, { - "category": "core", "key": "Shift+.", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Indent selected lines", "command": "dance.edit.indent" }, { - "category": "helix", "key": "Shift+.", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Indent selected lines", "command": "dance.edit.indent" }, { - "category": "helix", "key": "Shift+J", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Join lines", "command": "dance.edit.join" }, { - "category": "helix", "key": "Shift+J", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Join lines", "command": "dance.edit.join" }, { - "category": "core", "key": "Shift+Alt+J", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Join lines and select inserted separators", "command": "dance.edit.join.select" }, { - "category": "helix", "key": "Shift+Alt+J", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Join lines and select inserted separators", "command": "dance.edit.join.select" }, { - "category": "core", "key": "Shift+O", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert new line above and switch to insert", "command": "dance.edit.newLine.above.insert" }, { - "category": "helix", "key": "Shift+O", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert new line above and switch to insert", "command": "dance.edit.newLine.above.insert" }, { - "category": "core", "key": "O", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert new line below and switch to insert", "command": "dance.edit.newLine.below.insert" }, { - "category": "helix", "key": "O", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert new line below and switch to insert", "command": "dance.edit.newLine.below.insert" }, { - "category": "helix", "key": "P", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Paste after", "command": "dance.edit.paste.after" }, { - "category": "core", "key": "P", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Paste after and select", "command": "dance.edit.paste.after.select" }, { - "category": "helix", "key": "Shift+P", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Paste before", "command": "dance.edit.paste.before" }, { - "category": "core", "key": "Shift+P", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Paste before and select", "command": "dance.edit.paste.before.select" }, { - "category": "core", "key": "R", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Replace characters", "command": "dance.edit.replaceCharacters" }, { - "category": "core", "key": "D", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Copy and delete", "command": "dance.edit.yank-delete" }, { - "category": "helix", "key": "D", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Copy and delete", "command": "dance.edit.yank-delete" }, { - "category": "core", "key": "C", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Copy, delete and switch to Insert", "command": "dance.edit.yank-delete-insert" }, { - "category": "helix", "key": "C", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Copy, delete and switch to Insert", "command": "dance.edit.yank-delete-insert" }, { - "category": "core", "key": "Shift+U", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Redo", "command": "dance.history.redo" }, { - "category": "helix", "key": "Shift+U", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Redo", "command": "dance.history.redo" }, { - "category": "core", "key": ".", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Repeat last edit without a command", "command": "dance.history.repeat.edit" }, { - "category": "core", "key": "NumPad_Decimal", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Repeat last edit without a command", "command": "dance.history.repeat.edit" }, { - "category": "core", "key": "Alt+.", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Repeat last seek", "command": "dance.history.repeat.seek" }, { - "category": "helix", "key": "Alt+.", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Repeat last seek", "command": "dance.history.repeat.seek" }, { - "category": "core", "key": "U", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Undo", "command": "dance.history.undo" }, { - "category": "helix", "key": "U", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Undo", "command": "dance.history.undo" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'helix/normal' && !dance.isRecording && !markersNavigationVisible", "title": "Cancel Dance operation", "command": "dance.cancel" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'input'", "title": "Cancel Dance operation", "command": "dance.cancel" }, { - "category": "core", "key": "Up", "when": "inputFocus && dance.inPrompt", "command": "dance.changeInput", @@ -699,7 +658,6 @@ } }, { - "category": "core", "key": "Down", "when": "inputFocus && dance.inPrompt", "command": "dance.changeInput", @@ -708,14 +666,12 @@ } }, { - "category": "core", "key": "Shift+'", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select register for next command", "command": "dance.selectRegister" }, { - "category": "core", "key": "0", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 0 to the counter", @@ -725,7 +681,6 @@ } }, { - "category": "core", "key": "NumPad0", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 0 to the counter", @@ -735,7 +690,6 @@ } }, { - "category": "core", "key": "1", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 1 to the counter", @@ -745,7 +699,6 @@ } }, { - "category": "core", "key": "NumPad1", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 1 to the counter", @@ -755,7 +708,6 @@ } }, { - "category": "core", "key": "2", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 2 to the counter", @@ -765,7 +717,6 @@ } }, { - "category": "core", "key": "NumPad2", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 2 to the counter", @@ -775,7 +726,6 @@ } }, { - "category": "core", "key": "3", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 3 to the counter", @@ -785,7 +735,6 @@ } }, { - "category": "core", "key": "NumPad3", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 3 to the counter", @@ -795,7 +744,6 @@ } }, { - "category": "core", "key": "4", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 4 to the counter", @@ -805,7 +753,6 @@ } }, { - "category": "core", "key": "NumPad4", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 4 to the counter", @@ -815,7 +762,6 @@ } }, { - "category": "core", "key": "5", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 5 to the counter", @@ -825,7 +771,6 @@ } }, { - "category": "core", "key": "NumPad5", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 5 to the counter", @@ -835,7 +780,6 @@ } }, { - "category": "core", "key": "6", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 6 to the counter", @@ -845,7 +789,6 @@ } }, { - "category": "core", "key": "NumPad6", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 6 to the counter", @@ -855,7 +798,6 @@ } }, { - "category": "core", "key": "7", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 7 to the counter", @@ -865,7 +807,6 @@ } }, { - "category": "core", "key": "NumPad7", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 7 to the counter", @@ -875,7 +816,6 @@ } }, { - "category": "core", "key": "8", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 8 to the counter", @@ -885,7 +825,6 @@ } }, { - "category": "core", "key": "NumPad8", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 8 to the counter", @@ -895,7 +834,6 @@ } }, { - "category": "core", "key": "9", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 9 to the counter", @@ -905,7 +843,6 @@ } }, { - "category": "core", "key": "NumPad9", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Add the digit 9 to the counter", @@ -915,7 +852,6 @@ } }, { - "category": "core", "key": "Shift+;", "when": "editorTextFocus && dance.mode == 'helix/normal'", "command": "workbench.action.showCommands", @@ -924,182 +860,156 @@ } }, { - "category": "core", "key": "A", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert after", "command": "dance.modes.insert.after" }, { - "category": "helix", "key": "A", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert after", "command": "dance.modes.insert.after" }, { - "category": "core", "key": "I", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert before", "command": "dance.modes.insert.before" }, { - "category": "helix", "key": "I", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert before", "command": "dance.modes.insert.before" }, { - "category": "core", "key": "Shift+A", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert at line end", "command": "dance.modes.insert.lineEnd" }, { - "category": "helix", "key": "Shift+A", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert at line end", "command": "dance.modes.insert.lineEnd" }, { - "category": "core", "key": "Shift+I", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Insert at line start", "command": "dance.modes.insert.lineStart" }, { - "category": "helix", "key": "Shift+I", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Insert at line start", "command": "dance.modes.insert.lineStart" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'helix/insert'", "title": "Set mode to Normal", "command": "dance.modes.set.normal" }, { - "category": "helix", "key": "Escape", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Set mode to Normal", "command": "dance.modes.set.normal" }, { - "category": "helix", "key": "V", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Set mode to Normal", "command": "dance.modes.set.normal" }, { - "category": "helix", "key": "V", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Set mode to Select", "command": "dance.modes.set.select" }, { - "category": "core", "key": "/", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search", "command": "dance.search" }, { - "category": "core", "key": "NumPad_Divide", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search", "command": "dance.search" }, { - "category": "helix", "key": "Shift+/", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search backward", "command": "dance.search.backward" }, { - "category": "helix", "key": "Shift+/", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Search backward (extend)", "command": "dance.search.backward.extend" }, { - "category": "helix", "key": "/", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Search (extend)", "command": "dance.search.extend" }, { - "category": "core", "key": "N", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select next match", "command": "dance.search.next" }, { - "category": "helix", "key": "N", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Add next match", "command": "dance.search.next.add" }, { - "category": "helix", "key": "Shift+N", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select previous match", "command": "dance.search.previous" }, { - "category": "helix", "key": "Shift+N", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Add previous match", "command": "dance.search.previous.add" }, { - "category": "core", "key": "Shift+Alt+8", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search current selection", "command": "dance.search.selection" }, { - "category": "core", "key": "Alt+NumPad_Multiply", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search current selection", "command": "dance.search.selection" }, { - "category": "core", "key": "Shift+8", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search current selection (smart)", "command": "dance.search.selection.smart" }, { - "category": "core", "key": "NumPad_Multiply", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Search current selection (smart)", "command": "dance.search.selection.smart" }, { - "category": "helix", "key": "M", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Open match menu", @@ -1109,7 +1019,6 @@ } }, { - "category": "helix", "key": "M", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Open match menu with extend", @@ -1124,315 +1033,270 @@ } }, { - "category": "core", "key": "T", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to character (excluded)", "command": "dance.seek" }, { - "category": "helix", "key": "Shift+T", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to character (excluded, backward)", "command": "dance.seek.backward" }, { - "category": "helix", "key": "T", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to character (excluded)", "command": "dance.seek.extend" }, { - "category": "helix", "key": "Shift+T", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to character (excluded, backward)", "command": "dance.seek.extend.backward" }, { - "category": "core", "key": "F", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to character (included)", "command": "dance.seek.included" }, { - "category": "helix", "key": "Shift+F", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to character (included, backward)", "command": "dance.seek.included.backward" }, { - "category": "helix", "key": "F", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to character (included)", "command": "dance.seek.included.extend" }, { - "category": "helix", "key": "Shift+F", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to character (included, backward)", "command": "dance.seek.included.extend.backward" }, { - "category": "core", "key": "W", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to next word start", "command": "dance.seek.word" }, { - "category": "core", "key": "B", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to previous word start", "command": "dance.seek.word.backward" }, { - "category": "helix", "key": "W", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to next word start", "command": "dance.seek.word.extend" }, { - "category": "helix", "key": "B", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to previous word start", "command": "dance.seek.word.extend.backward" }, { - "category": "helix", "key": "Shift+W", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to next non-whitespace word start", "command": "dance.seek.word.ws" }, { - "category": "helix", "key": "Shift+B", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to previous non-whitespace word start", "command": "dance.seek.word.ws.backward" }, { - "category": "helix", "key": "Shift+W", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to next non-whitespace word start", "command": "dance.seek.word.ws.extend" }, { - "category": "helix", "key": "Shift+B", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to previous non-whitespace word start", "command": "dance.seek.word.ws.extend.backward" }, { - "category": "core", "key": "E", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to next word end", "command": "dance.seek.wordEnd" }, { - "category": "helix", "key": "E", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to next word end", "command": "dance.seek.wordEnd.extend" }, { - "category": "helix", "key": "Shift+E", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to next non-whitespace word end", "command": "dance.seek.wordEnd.ws" }, { - "category": "helix", "key": "Shift+E", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to next non-whitespace word end", "command": "dance.seek.wordEnd.ws.extend" }, { - "category": "helix", "key": "J", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend down", "command": "dance.select.down.extend" }, { - "category": "helix", "key": "Down", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend down", "command": "dance.select.down.extend" }, { - "category": "core", "key": "J", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump down", "command": "dance.select.down.jump" }, { - "category": "core", "key": "Down", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump down", "command": "dance.select.down.jump" }, { - "category": "helix", "key": "H", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend left", "command": "dance.select.left.extend" }, { - "category": "helix", "key": "Left", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend left", "command": "dance.select.left.extend" }, { - "category": "core", "key": "H", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump left", "command": "dance.select.left.jump" }, { - "category": "core", "key": "Left", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump left", "command": "dance.select.left.jump" }, { - "category": "helix", "key": "X", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Extend to line below", "command": "dance.select.line.below.extend" }, { - "category": "helix", "key": "X", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to line below", "command": "dance.select.line.below.extend" }, { - "category": "core", "key": "End", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to line end", "command": "dance.select.lineEnd" }, { - "category": "helix", "key": "End", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to line end", "command": "dance.select.lineEnd.extend" }, { - "category": "core", "key": "Home", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Select to line start", "command": "dance.select.lineStart" }, { - "category": "helix", "key": "Home", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to line start", "command": "dance.select.lineStart.extend" }, { - "category": "helix", "key": "L", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend right", "command": "dance.select.right.extend" }, { - "category": "helix", "key": "Right", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend right", "command": "dance.select.right.extend" }, { - "category": "core", "key": "L", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump right", "command": "dance.select.right.jump" }, { - "category": "core", "key": "Right", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump right", "command": "dance.select.right.jump" }, { - "category": "helix", "key": "G", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend to", "command": "dance.select.to.extend" }, { - "category": "core", "key": "G", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Go to", "command": "dance.select.to.jump" }, { - "category": "helix", "key": "K", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend up", "command": "dance.select.up.extend" }, { - "category": "helix", "key": "Up", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Extend up", "command": "dance.select.up.extend" }, { - "category": "core", "key": "K", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump up", "command": "dance.select.up.jump" }, { - "category": "core", "key": "Up", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Jump up", "command": "dance.select.up.jump" }, { - "category": "core", "key": "Ctrl+F", "when": "editorTextFocus && dance.mode == 'helix/normal'", "command": "dance.select.vertically", @@ -1443,7 +1307,6 @@ } }, { - "category": "core", "key": "Ctrl+F", "when": "editorTextFocus && dance.mode == 'helix/insert'", "command": "dance.select.vertically", @@ -1454,7 +1317,6 @@ } }, { - "category": "core", "key": "Ctrl+D", "when": "editorTextFocus && dance.mode == 'helix/normal'", "command": "dance.select.vertically", @@ -1465,7 +1327,6 @@ } }, { - "category": "core", "key": "Ctrl+D", "when": "editorTextFocus && dance.mode == 'helix/insert'", "command": "dance.select.vertically", @@ -1476,7 +1337,6 @@ } }, { - "category": "core", "key": "Ctrl+B", "when": "editorTextFocus && dance.mode == 'helix/normal'", "command": "dance.select.vertically", @@ -1487,7 +1347,6 @@ } }, { - "category": "core", "key": "Ctrl+B", "when": "editorTextFocus && dance.mode == 'helix/insert'", "command": "dance.select.vertically", @@ -1498,7 +1357,6 @@ } }, { - "category": "core", "key": "Ctrl+U", "when": "editorTextFocus && dance.mode == 'helix/normal'", "command": "dance.select.vertically", @@ -1509,7 +1367,6 @@ } }, { - "category": "core", "key": "Ctrl+U", "when": "editorTextFocus && dance.mode == 'helix/insert'", "command": "dance.select.vertically", @@ -1520,7 +1377,6 @@ } }, { - "category": "helix", "key": "Ctrl+F", "when": "editorTextFocus && dance.mode == 'helix/select'", "command": "dance.select.vertically", @@ -1531,7 +1387,6 @@ } }, { - "category": "helix", "key": "Ctrl+D", "when": "editorTextFocus && dance.mode == 'helix/select'", "command": "dance.select.vertically", @@ -1542,7 +1397,6 @@ } }, { - "category": "helix", "key": "Ctrl+B", "when": "editorTextFocus && dance.mode == 'helix/select'", "command": "dance.select.vertically", @@ -1553,7 +1407,6 @@ } }, { - "category": "helix", "key": "Ctrl+U", "when": "editorTextFocus && dance.mode == 'helix/select'", "command": "dance.select.vertically", @@ -1564,308 +1417,282 @@ } }, { - "category": "core", "key": "Alt+;", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Change direction of selections", "command": "dance.selections.changeDirection" }, { - "category": "helix", "key": "Alt+;", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Change direction of selections", "command": "dance.selections.changeDirection" }, { - "category": "core", "key": "Alt+,", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Clear main selections", "command": "dance.selections.clear.main" }, { - "category": "helix", "key": "Alt+,", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Clear main selections", "command": "dance.selections.clear.main" }, { - "category": "core", "key": ",", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Clear secondary selections", "command": "dance.selections.clear.secondary" }, { - "category": "helix", "key": ",", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Clear secondary selections", "command": "dance.selections.clear.secondary" }, { - "category": "helix", + "key": "Shift+C", + "when": "editorTextFocus && dance.mode == 'helix/normal'", + "title": "Copy selections below", + "command": "dance.selections.copy" + }, + { + "key": "Shift+C", + "when": "editorTextFocus && dance.mode == 'helix/select'", + "title": "Copy selections below", + "command": "dance.selections.copy" + }, + { + "key": "Shift+Alt+C", + "when": "editorTextFocus && dance.mode == 'helix/select'", + "title": "Copy selections above", + "command": "dance.selections.copy.above" + }, + { "key": "Shift+X", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Expand to lines", "command": "dance.selections.expandToLines" }, { - "category": "helix", "key": "Shift+X", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Expand to lines", "command": "dance.selections.expandToLines" }, { - "category": "core", "key": "Shift+4", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Filter selections", "command": "dance.selections.filter" }, { - "category": "helix", "key": "Shift+4", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Filter selections", "command": "dance.selections.filter" }, { - "category": "core", "key": "Alt+K", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Keep matching selections", "command": "dance.selections.filter.regexp" }, { - "category": "helix", "key": "Alt+K", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Keep matching selections", "command": "dance.selections.filter.regexp" }, { - "category": "core", "key": "Shift+Alt+K", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Clear matching selections", "command": "dance.selections.filter.regexp.inverse" }, { - "category": "helix", "key": "Shift+Alt+K", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Clear matching selections", "command": "dance.selections.filter.regexp.inverse" }, { - "category": "core", "key": "Shift+Alt+\\", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Pipe selections", "command": "dance.selections.pipe" }, { - "category": "helix", "key": "Shift+Alt+\\", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Pipe selections", "command": "dance.selections.pipe" }, { - "category": "core", "key": "Shift+1", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Pipe and append", "command": "dance.selections.pipe.append" }, { - "category": "helix", "key": "Shift+1", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Pipe and append", "command": "dance.selections.pipe.append" }, { - "category": "core", "key": "Shift+Alt+1", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Pipe and prepend", "command": "dance.selections.pipe.prepend" }, { - "category": "helix", "key": "Shift+Alt+1", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Pipe and prepend", "command": "dance.selections.pipe.prepend" }, { - "category": "core", "key": "Shift+\\", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Pipe and replace", "command": "dance.selections.pipe.replace" }, { - "category": "helix", "key": "Shift+\\", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Pipe and replace", "command": "dance.selections.pipe.replace" }, { - "category": "core", "key": ";", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Reduce selections to their cursor", "command": "dance.selections.reduce" }, { - "category": "helix", "key": ";", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Reduce selections to their cursor", "command": "dance.selections.reduce" }, { - "category": "core", "key": "Y", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Copy selections text", "command": "dance.selections.saveText" }, { - "category": "helix", "key": "Y", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Copy selections text", "command": "dance.selections.saveText" }, { - "category": "core", "key": "S", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Leap or select", "command": "dance.selections.select.orLeap" }, { - "category": "helix", "key": "S", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Leap or select", "command": "dance.selections.select.orLeap" }, { - "category": "core", "key": "Shift+S", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Split selections", "command": "dance.selections.split" }, { - "category": "helix", "key": "Shift+S", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Split selections", "command": "dance.selections.split" }, { - "category": "core", "key": "Alt+S", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Leap or select backward", "command": "dance.selections.splitLines.orLeap.backward" }, { - "category": "helix", "key": "Alt+S", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Leap or select backward", "command": "dance.selections.splitLines.orLeap.backward" }, { - "category": "core", "key": "Alt+X", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Trim lines", "command": "dance.selections.trimLines" }, { - "category": "helix", "key": "Alt+X", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Trim lines", "command": "dance.selections.trimLines" }, { - "category": "core", "key": "Shift+-", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Trim whitespace", "command": "dance.selections.trimWhitespace" }, { - "category": "helix", "key": "Shift+-", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Trim whitespace", "command": "dance.selections.trimWhitespace" }, { - "category": "helix", "key": "Shift+Alt+0", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Rotate selections clockwise (contents only)", "command": "dance.selections.rotate.contents" }, { - "category": "helix", "key": "Shift+Alt+0", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Rotate selections clockwise (contents only)", "command": "dance.selections.rotate.contents" }, { - "category": "helix", "key": "Shift+Alt+9", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Rotate selections counter-clockwise (contents only)", "command": "dance.selections.rotate.contents.reverse" }, { - "category": "helix", "key": "Shift+Alt+9", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Rotate selections counter-clockwise (contents only)", "command": "dance.selections.rotate.contents.reverse" }, { - "category": "core", "key": "Shift+0", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Rotate selections clockwise (selections only)", "command": "dance.selections.rotate.selections" }, { - "category": "core", "key": "Shift+9", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Rotate selections counter-clockwise (selections only)", "command": "dance.selections.rotate.selections.reverse" }, { - "category": "helix", "key": "Shift+9", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Rotate selections counter-clockwise (selections only)", "command": "dance.selections.rotate.selections.reverse" }, { - "category": "helix", "key": "Z", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Show view menu", @@ -1876,7 +1703,6 @@ } }, { - "category": "helix", "key": "Z", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Show view menu", @@ -1887,7 +1713,6 @@ } }, { - "category": "helix", "key": "Shift+Z", "when": "editorTextFocus && dance.mode == 'helix/normal'", "title": "Show view menu (locked)", @@ -1899,7 +1724,6 @@ } }, { - "category": "helix", "key": "Shift+Z", "when": "editorTextFocus && dance.mode == 'helix/select'", "title": "Show view menu (locked)", @@ -1915,11 +1739,6 @@ "command": "dance.ignore", "when": "dance.mode == 'helix/normal'" }, - { - "key": "Shift+C", - "command": "dance.ignore", - "when": "dance.mode == 'helix/normal'" - }, { "key": "Shift+D", "command": "dance.ignore", @@ -2110,11 +1929,6 @@ "command": "dance.ignore", "when": "dance.mode == 'helix/select'" }, - { - "key": "Shift+C", - "command": "dance.ignore", - "when": "dance.mode == 'helix/select'" - }, { "key": "Shift+D", "command": "dance.ignore", diff --git a/package.build.ts b/package.build.ts index f0da06bb..ba3ace41 100644 --- a/package.build.ts +++ b/package.build.ts @@ -758,7 +758,8 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({ keybindings: (() => { const keybindings = modules .flatMap((module) => module.keybindings) - .filter((keybinding) => ["core", "kakoune", undefined].includes(keybinding.category)); + .filter((keybinding) => ["core", "kakoune", undefined].includes(keybinding.category)) + .map(({ category, ...kb }) => kb); return [ ...keybindings, diff --git a/package.json b/package.json index 4b88c4c1..4c3399d7 100644 --- a/package.json +++ b/package.json @@ -2777,294 +2777,252 @@ }, "keybindings": [ { - "category": "core", "key": "Shift+7", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Align selections", "command": "dance.edit.align" }, { - "category": "kakoune", "key": "Alt+`", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Swap case", "command": "dance.edit.case.swap" }, { - "category": "core", "key": "`", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Transform to lower case", "command": "dance.edit.case.toLower" }, { - "category": "kakoune", "key": "Shift+`", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Transform to upper case", "command": "dance.edit.case.toUpper" }, { - "category": "kakoune", "key": "Shift+Alt+7", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy indentation", "command": "dance.edit.copyIndentation" }, { - "category": "kakoune", "key": "Shift+Alt+,", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Deindent selected lines", "command": "dance.edit.deindent" }, { - "category": "core", "key": "Shift+,", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Deindent selected lines (including incomplete indent)", "command": "dance.edit.deindent.withIncomplete" }, { - "category": "core", "key": "Alt+D", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Delete", "command": "dance.edit.delete" }, { - "category": "kakoune", "key": "Alt+C", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Delete and switch to Insert", "command": "dance.edit.delete-insert" }, { - "category": "core", "key": "Shift+.", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Indent selected lines", "command": "dance.edit.indent" }, { - "category": "kakoune", "key": "Shift+Alt+.", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Indent selected lines (including empty lines)", "command": "dance.edit.indent.withEmpty" }, { - "category": "kakoune", "key": "Shift+Alt+R", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert contents of register", "command": "dance.edit.insert" }, { - "category": "kakoune", "key": "Alt+J", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Join lines", "command": "dance.edit.join" }, { - "category": "core", "key": "Shift+Alt+J", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Join lines and select inserted separators", "command": "dance.edit.join.select" }, { - "category": "kakoune", "key": "Shift+Alt+O", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert new line above each selection", "command": "dance.edit.newLine.above" }, { - "category": "core", "key": "Shift+O", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert new line above and switch to insert", "command": "dance.edit.newLine.above.insert" }, { - "category": "kakoune", "key": "Alt+O", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert new line below each selection", "command": "dance.edit.newLine.below" }, { - "category": "core", "key": "O", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert new line below and switch to insert", "command": "dance.edit.newLine.below.insert" }, { - "category": "core", "key": "P", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Paste after and select", "command": "dance.edit.paste.after.select" }, { - "category": "core", "key": "Shift+P", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Paste before and select", "command": "dance.edit.paste.before.select" }, { - "category": "kakoune", "key": "Alt+P", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Paste all after and select", "command": "dance.edit.pasteAll.after.select" }, { - "category": "kakoune", "key": "Shift+Alt+P", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Paste all before and select", "command": "dance.edit.pasteAll.before.select" }, { - "category": "core", "key": "R", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Replace characters", "command": "dance.edit.replaceCharacters" }, { - "category": "kakoune", "key": "Ctrl+R", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Pick register and replace", "command": "dance.edit.selectRegister-insert" }, { - "category": "kakoune", "key": "Ctrl+R", "when": "editorTextFocus && dance.mode == 'insert'", "title": "Pick register and replace", "command": "dance.edit.selectRegister-insert" }, { - "category": "core", "key": "D", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy and delete", "command": "dance.edit.yank-delete" }, { - "category": "core", "key": "C", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy, delete and switch to Insert", "command": "dance.edit.yank-delete-insert" }, { - "category": "kakoune", "key": "Shift+R", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy and replace", "command": "dance.edit.yank-replace" }, { - "category": "kakoune", "key": "Q", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Replay recording", "command": "dance.history.recording.play" }, { - "category": "kakoune", "key": "Shift+Q", "when": "editorTextFocus && dance.mode == 'normal' && !dance.isRecording", "title": "Start recording", "command": "dance.history.recording.start" }, { - "category": "kakoune", "key": "Escape", "when": "editorTextFocus && dance.mode == 'normal' && dance.isRecording", "title": "Stop recording", "command": "dance.history.recording.stop" }, { - "category": "kakoune", "key": "Shift+Q", "when": "editorTextFocus && dance.mode == 'normal' && dance.isRecording", "title": "Stop recording", "command": "dance.history.recording.stop" }, { - "category": "core", "key": "Shift+U", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Redo", "command": "dance.history.redo" }, { - "category": "kakoune", "key": "Shift+Alt+U", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Redo a change of selections", "command": "dance.history.redo.selections" }, { - "category": "core", "key": ".", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Repeat last edit without a command", "command": "dance.history.repeat.edit" }, { - "category": "core", "key": "NumPad_Decimal", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Repeat last edit without a command", "command": "dance.history.repeat.edit" }, { - "category": "core", "key": "Alt+.", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Repeat last seek", "command": "dance.history.repeat.seek" }, { - "category": "core", "key": "U", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Undo", "command": "dance.history.undo" }, { - "category": "kakoune", "key": "Alt+U", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Undo a change of selections", "command": "dance.history.undo.selections" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'normal' && !dance.isRecording && !markersNavigationVisible", "title": "Cancel Dance operation", "command": "dance.cancel" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'input'", "title": "Cancel Dance operation", "command": "dance.cancel" }, { - "category": "core", "key": "Up", "when": "inputFocus && dance.inPrompt", "command": "dance.changeInput", @@ -3073,7 +3031,6 @@ } }, { - "category": "core", "key": "Down", "when": "inputFocus && dance.inPrompt", "command": "dance.changeInput", @@ -3082,14 +3039,12 @@ } }, { - "category": "core", "key": "Shift+'", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select register for next command", "command": "dance.selectRegister" }, { - "category": "core", "key": "0", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 0 to the counter", @@ -3099,7 +3054,6 @@ } }, { - "category": "core", "key": "NumPad0", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 0 to the counter", @@ -3109,7 +3063,6 @@ } }, { - "category": "core", "key": "1", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 1 to the counter", @@ -3119,7 +3072,6 @@ } }, { - "category": "core", "key": "NumPad1", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 1 to the counter", @@ -3129,7 +3081,6 @@ } }, { - "category": "core", "key": "2", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 2 to the counter", @@ -3139,7 +3090,6 @@ } }, { - "category": "core", "key": "NumPad2", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 2 to the counter", @@ -3149,7 +3099,6 @@ } }, { - "category": "core", "key": "3", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 3 to the counter", @@ -3159,7 +3108,6 @@ } }, { - "category": "core", "key": "NumPad3", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 3 to the counter", @@ -3169,7 +3117,6 @@ } }, { - "category": "core", "key": "4", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 4 to the counter", @@ -3179,7 +3126,6 @@ } }, { - "category": "core", "key": "NumPad4", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 4 to the counter", @@ -3189,7 +3135,6 @@ } }, { - "category": "core", "key": "5", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 5 to the counter", @@ -3199,7 +3144,6 @@ } }, { - "category": "core", "key": "NumPad5", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 5 to the counter", @@ -3209,7 +3153,6 @@ } }, { - "category": "core", "key": "6", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 6 to the counter", @@ -3219,7 +3162,6 @@ } }, { - "category": "core", "key": "NumPad6", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 6 to the counter", @@ -3229,7 +3171,6 @@ } }, { - "category": "core", "key": "7", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 7 to the counter", @@ -3239,7 +3180,6 @@ } }, { - "category": "core", "key": "NumPad7", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 7 to the counter", @@ -3249,7 +3189,6 @@ } }, { - "category": "core", "key": "8", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 8 to the counter", @@ -3259,7 +3198,6 @@ } }, { - "category": "core", "key": "NumPad8", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 8 to the counter", @@ -3269,7 +3207,6 @@ } }, { - "category": "core", "key": "9", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 9 to the counter", @@ -3279,7 +3216,6 @@ } }, { - "category": "core", "key": "NumPad9", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add the digit 9 to the counter", @@ -3289,7 +3225,6 @@ } }, { - "category": "core", "key": "Shift+;", "when": "editorTextFocus && dance.mode == 'normal'", "command": "workbench.action.showCommands", @@ -3298,588 +3233,504 @@ } }, { - "category": "core", "key": "A", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert after", "command": "dance.modes.insert.after" }, { - "category": "core", "key": "I", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert before", "command": "dance.modes.insert.before" }, { - "category": "core", "key": "Shift+A", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert at line end", "command": "dance.modes.insert.lineEnd" }, { - "category": "core", "key": "Shift+I", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Insert at line start", "command": "dance.modes.insert.lineStart" }, { - "category": "core", "key": "Escape", "when": "editorTextFocus && dance.mode == 'insert'", "title": "Set mode to Normal", "command": "dance.modes.set.normal" }, { - "category": "kakoune", "key": "Ctrl+V", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Temporary Insert mode", "command": "dance.modes.set.temporarily.insert" }, { - "category": "kakoune", "key": "Ctrl+V", "when": "editorTextFocus && dance.mode == 'insert'", "title": "Temporary Normal mode", "command": "dance.modes.set.temporarily.normal" }, { - "category": "core", "key": "/", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search", "command": "dance.search" }, { - "category": "core", "key": "NumPad_Divide", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search", "command": "dance.search" }, { - "category": "kakoune", "key": "Alt+/", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search backward", "command": "dance.search.backward" }, { - "category": "kakoune", "key": "Shift+Alt+/", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search backward (extend)", "command": "dance.search.backward.extend" }, { - "category": "kakoune", "key": "Shift+/", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search (extend)", "command": "dance.search.extend" }, { - "category": "core", "key": "N", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select next match", "command": "dance.search.next" }, { - "category": "kakoune", "key": "Shift+N", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add next match", "command": "dance.search.next.add" }, { - "category": "kakoune", "key": "Alt+N", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select previous match", "command": "dance.search.previous" }, { - "category": "kakoune", "key": "Shift+Alt+N", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Add previous match", "command": "dance.search.previous.add" }, { - "category": "core", "key": "Shift+Alt+8", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search current selection", "command": "dance.search.selection" }, { - "category": "core", "key": "Alt+NumPad_Multiply", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search current selection", "command": "dance.search.selection" }, { - "category": "core", "key": "Shift+8", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search current selection (smart)", "command": "dance.search.selection.smart" }, { - "category": "core", "key": "NumPad_Multiply", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Search current selection (smart)", "command": "dance.search.selection.smart" }, { - "category": "core", "key": "T", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to character (excluded)", "command": "dance.seek" }, { - "category": "kakoune", "key": "Alt+A", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select whole object", "command": "dance.seek.askObject" }, { - "category": "kakoune", "key": "Alt+A", "when": "editorTextFocus && dance.mode == 'insert'", "title": "Select whole object", "command": "dance.seek.askObject" }, { - "category": "kakoune", "key": "]", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to whole object end", "command": "dance.seek.askObject.end" }, { - "category": "kakoune", "key": "Shift+]", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to whole object end", "command": "dance.seek.askObject.end.extend" }, { - "category": "kakoune", "key": "Alt+I", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select inner object", "command": "dance.seek.askObject.inner" }, { - "category": "kakoune", "key": "Alt+I", "when": "editorTextFocus && dance.mode == 'insert'", "title": "Select inner object", "command": "dance.seek.askObject.inner" }, { - "category": "kakoune", "key": "Alt+]", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to inner object end", "command": "dance.seek.askObject.inner.end" }, { - "category": "kakoune", "key": "Shift+Alt+]", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to inner object end", "command": "dance.seek.askObject.inner.end.extend" }, { - "category": "kakoune", "key": "Alt+[", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to inner object start", "command": "dance.seek.askObject.inner.start" }, { - "category": "kakoune", "key": "Shift+Alt+[", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to inner object start", "command": "dance.seek.askObject.inner.start.extend" }, { - "category": "kakoune", "key": "[", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to whole object start", "command": "dance.seek.askObject.start" }, { - "category": "kakoune", "key": "Shift+[", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to whole object start", "command": "dance.seek.askObject.start.extend" }, { - "category": "kakoune", "key": "Alt+T", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to character (excluded, backward)", "command": "dance.seek.backward" }, { - "category": "kakoune", "key": "M", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to next enclosing character", "command": "dance.seek.enclosing" }, { - "category": "kakoune", "key": "Alt+M", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to previous enclosing character", "command": "dance.seek.enclosing.backward" }, { - "category": "kakoune", "key": "Shift+M", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to next enclosing character", "command": "dance.seek.enclosing.extend" }, { - "category": "kakoune", "key": "Shift+Alt+M", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to previous enclosing character", "command": "dance.seek.enclosing.extend.backward" }, { - "category": "kakoune", "key": "Shift+T", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to character (excluded)", "command": "dance.seek.extend" }, { - "category": "kakoune", "key": "Shift+Alt+T", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to character (excluded, backward)", "command": "dance.seek.extend.backward" }, { - "category": "core", "key": "F", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to character (included)", "command": "dance.seek.included" }, { - "category": "kakoune", "key": "Alt+F", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to character (included, backward)", "command": "dance.seek.included.backward" }, { - "category": "kakoune", "key": "Shift+F", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to character (included)", "command": "dance.seek.included.extend" }, { - "category": "kakoune", "key": "Shift+Alt+F", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to character (included, backward)", "command": "dance.seek.included.extend.backward" }, { - "category": "core", "key": "W", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to next word start", "command": "dance.seek.word" }, { - "category": "core", "key": "B", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to previous word start", "command": "dance.seek.word.backward" }, { - "category": "kakoune", "key": "Shift+W", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to next word start", "command": "dance.seek.word.extend" }, { - "category": "kakoune", "key": "Shift+B", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to previous word start", "command": "dance.seek.word.extend.backward" }, { - "category": "kakoune", "key": "Alt+W", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to next non-whitespace word start", "command": "dance.seek.word.ws" }, { - "category": "kakoune", "key": "Alt+B", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to previous non-whitespace word start", "command": "dance.seek.word.ws.backward" }, { - "category": "kakoune", "key": "Shift+Alt+W", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to next non-whitespace word start", "command": "dance.seek.word.ws.extend" }, { - "category": "kakoune", "key": "Shift+Alt+B", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to previous non-whitespace word start", "command": "dance.seek.word.ws.extend.backward" }, { - "category": "core", "key": "E", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to next word end", "command": "dance.seek.wordEnd" }, { - "category": "kakoune", "key": "Shift+E", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to next word end", "command": "dance.seek.wordEnd.extend" }, { - "category": "kakoune", "key": "Alt+E", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to next non-whitespace word end", "command": "dance.seek.wordEnd.ws" }, { - "category": "kakoune", "key": "Shift+Alt+E", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to next non-whitespace word end", "command": "dance.seek.wordEnd.ws.extend" }, { - "category": "kakoune", "key": "Shift+5", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select whole buffer", "command": "dance.select.buffer" }, { - "category": "kakoune", "key": "Shift+J", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend down", "command": "dance.select.down.extend" }, { - "category": "kakoune", "key": "Shift+Down", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend down", "command": "dance.select.down.extend" }, { - "category": "core", "key": "J", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump down", "command": "dance.select.down.jump" }, { - "category": "core", "key": "Down", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump down", "command": "dance.select.down.jump" }, { - "category": "kakoune", "key": "Shift+H", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend left", "command": "dance.select.left.extend" }, { - "category": "kakoune", "key": "Shift+Left", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend left", "command": "dance.select.left.extend" }, { - "category": "core", "key": "H", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump left", "command": "dance.select.left.jump" }, { - "category": "core", "key": "Left", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump left", "command": "dance.select.left.jump" }, { - "category": "kakoune", "key": "Alt+L", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to line end", "command": "dance.select.lineEnd" }, { - "category": "core", "key": "End", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to line end", "command": "dance.select.lineEnd" }, { - "category": "kakoune", "key": "Shift+Alt+L", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to line end", "command": "dance.select.lineEnd.extend" }, { - "category": "kakoune", "key": "Shift+End", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to line end", "command": "dance.select.lineEnd.extend" }, { - "category": "kakoune", "key": "Alt+H", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to line start", "command": "dance.select.lineStart" }, { - "category": "core", "key": "Home", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Select to line start", "command": "dance.select.lineStart" }, { - "category": "kakoune", "key": "Shift+Alt+H", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to line start", "command": "dance.select.lineStart.extend" }, { - "category": "kakoune", "key": "Shift+Home", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to line start", "command": "dance.select.lineStart.extend" }, { - "category": "kakoune", "key": "Shift+L", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend right", "command": "dance.select.right.extend" }, { - "category": "kakoune", "key": "Shift+Right", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend right", "command": "dance.select.right.extend" }, { - "category": "core", "key": "L", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump right", "command": "dance.select.right.jump" }, { - "category": "core", "key": "Right", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump right", "command": "dance.select.right.jump" }, { - "category": "kakoune", "key": "Shift+G", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend to", "command": "dance.select.to.extend" }, { - "category": "core", "key": "G", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Go to", "command": "dance.select.to.jump" }, { - "category": "kakoune", "key": "Shift+K", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend up", "command": "dance.select.up.extend" }, { - "category": "kakoune", "key": "Shift+Up", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Extend up", "command": "dance.select.up.extend" }, { - "category": "core", "key": "K", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump up", "command": "dance.select.up.jump" }, { - "category": "core", "key": "Up", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Jump up", "command": "dance.select.up.jump" }, { - "category": "core", "key": "Ctrl+F", "when": "editorTextFocus && dance.mode == 'normal'", "command": "dance.select.vertically", @@ -3890,7 +3741,6 @@ } }, { - "category": "core", "key": "Ctrl+F", "when": "editorTextFocus && dance.mode == 'insert'", "command": "dance.select.vertically", @@ -3901,7 +3751,6 @@ } }, { - "category": "core", "key": "Ctrl+D", "when": "editorTextFocus && dance.mode == 'normal'", "command": "dance.select.vertically", @@ -3912,7 +3761,6 @@ } }, { - "category": "core", "key": "Ctrl+D", "when": "editorTextFocus && dance.mode == 'insert'", "command": "dance.select.vertically", @@ -3923,7 +3771,6 @@ } }, { - "category": "core", "key": "Ctrl+B", "when": "editorTextFocus && dance.mode == 'normal'", "command": "dance.select.vertically", @@ -3934,7 +3781,6 @@ } }, { - "category": "core", "key": "Ctrl+B", "when": "editorTextFocus && dance.mode == 'insert'", "command": "dance.select.vertically", @@ -3945,7 +3791,6 @@ } }, { - "category": "core", "key": "Ctrl+U", "when": "editorTextFocus && dance.mode == 'normal'", "command": "dance.select.vertically", @@ -3956,7 +3801,6 @@ } }, { - "category": "core", "key": "Ctrl+U", "when": "editorTextFocus && dance.mode == 'insert'", "command": "dance.select.vertically", @@ -3967,140 +3811,120 @@ } }, { - "category": "core", "key": "Alt+;", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Change direction of selections", "command": "dance.selections.changeDirection" }, { - "category": "core", "key": "Alt+,", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Clear main selections", "command": "dance.selections.clear.main" }, { - "category": "core", "key": ",", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Clear secondary selections", "command": "dance.selections.clear.secondary" }, { - "category": "kakoune", "key": "Shift+C", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy selections below", "command": "dance.selections.copy" }, { - "category": "kakoune", "key": "Shift+Alt+C", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy selections above", "command": "dance.selections.copy.above" }, { - "category": "kakoune", "key": "X", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Expand to lines", "command": "dance.selections.expandToLines" }, { - "category": "kakoune", "key": "Shift+Alt+;", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Forward selections", "command": "dance.selections.faceForward" }, { - "category": "core", "key": "Shift+4", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Filter selections", "command": "dance.selections.filter" }, { - "category": "core", "key": "Alt+K", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Keep matching selections", "command": "dance.selections.filter.regexp" }, { - "category": "core", "key": "Shift+Alt+K", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Clear matching selections", "command": "dance.selections.filter.regexp.inverse" }, { - "category": "kakoune", "key": "Shift+Alt+-", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Merge contiguous selections", "command": "dance.selections.merge" }, { - "category": "core", "key": "Shift+Alt+\\", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Pipe selections", "command": "dance.selections.pipe" }, { - "category": "core", "key": "Shift+1", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Pipe and append", "command": "dance.selections.pipe.append" }, { - "category": "core", "key": "Shift+Alt+1", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Pipe and prepend", "command": "dance.selections.pipe.prepend" }, { - "category": "core", "key": "Shift+\\", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Pipe and replace", "command": "dance.selections.pipe.replace" }, { - "category": "core", "key": ";", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Reduce selections to their cursor", "command": "dance.selections.reduce" }, { - "category": "kakoune", "key": "Shift+Alt+S", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Reduce selections to their ends", "command": "dance.selections.reduce.edges" }, { - "category": "kakoune", "key": "Z", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Restore selections", "command": "dance.selections.restore" }, { - "category": "kakoune", "key": "Alt+Z", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Combine register selections with current ones", "command": "dance.selections.restore.withCurrent" }, { - "category": "kakoune", "key": "Shift+Alt+Z", "when": "editorTextFocus && dance.mode == 'normal'", "command": "dance.selections.restore.withCurrent", @@ -4110,84 +3934,72 @@ } }, { - "category": "kakoune", "key": "Shift+Z", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Save selections", "command": "dance.selections.save" }, { - "category": "core", "key": "Y", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Copy selections text", "command": "dance.selections.saveText" }, { - "category": "core", "key": "S", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Leap or select", "command": "dance.selections.select.orLeap" }, { - "category": "core", "key": "Shift+S", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Split selections", "command": "dance.selections.split" }, { - "category": "core", "key": "Alt+S", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Leap or select backward", "command": "dance.selections.splitLines.orLeap.backward" }, { - "category": "core", "key": "Alt+X", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Trim lines", "command": "dance.selections.trimLines" }, { - "category": "core", "key": "Shift+-", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Trim whitespace", "command": "dance.selections.trimWhitespace" }, { - "category": "kakoune", "key": "Shift+Alt+0", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Rotate selections clockwise", "command": "dance.selections.rotate.both" }, { - "category": "kakoune", "key": "Shift+Alt+9", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Rotate selections counter-clockwise", "command": "dance.selections.rotate.both.reverse" }, { - "category": "core", "key": "Shift+0", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Rotate selections clockwise (selections only)", "command": "dance.selections.rotate.selections" }, { - "category": "core", "key": "Shift+9", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Rotate selections counter-clockwise (selections only)", "command": "dance.selections.rotate.selections.reverse" }, { - "category": "kakoune", "key": "V", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Show view menu", @@ -4198,7 +4010,6 @@ } }, { - "category": "kakoune", "key": "Shift+V", "when": "editorTextFocus && dance.mode == 'normal'", "title": "Show view menu (locked)", diff --git a/src/api/data/commands.yaml b/src/api/data/commands.yaml index 841f601b..fbdce58f 100644 --- a/src/api/data/commands.yaml +++ b/src/api/data/commands.yaml @@ -2142,7 +2142,8 @@ selections.copy: keys: qwerty: |- - `s-c` (kakoune: normal) + `s-c` (core: normal) + `s-c` (helix: select) doc: en: | @@ -2151,9 +2152,9 @@ selections.copy: #### Variant - | Title | Identifier | Keybinding | Command | - | --------------------- | ------------ | ------------------------- | ----------------------------------------- | - | Copy selections above | `copy.above` | `s-a-c` (kakoune: normal) | `[".selections.copy", { direction: -1 }]` | + | Title | Identifier | Keybinding | Command | + | --------------------- | ------------ | -------------------------------------------------- | ----------------------------------------- | + | Copy selections above | `copy.above` | `s-a-c` (kakoune: normal), `s-a-c` (helix: select) | `[".selections.copy", { direction: -1 }]` | selections.copy.above: title: @@ -2165,6 +2166,7 @@ selections.copy.above: keys: qwerty: |- `s-a-c` (kakoune: normal) + `s-a-c` (helix: select) selections.expandToLines: title: diff --git a/src/commands/README.md b/src/commands/README.md index 04f7554d..9aaf83ef 100644 --- a/src/commands/README.md +++ b/src/commands/README.md @@ -185,7 +185,7 @@ selections are empty select.verticallySelect vertically selectionsselections.changeDirectionChange direction of selectionsAlt+; (editorTextFocus && dance.mode == 'normal')Alt+; (editorTextFocus && dance.mode == 'select') selections.changeOrderReverse selections -selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal') +selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal')Shift+C (editorTextFocus && dance.mode == 'select') selections.expandToLinesExpand to linesX (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'select') selections.filterFilter selectionsShift+4 (editorTextFocus && dance.mode == 'normal')Shift+4 (editorTextFocus && dance.mode == 'select') selections.mergeMerge contiguous selectionsShift+Alt+- (editorTextFocus && dance.mode == 'normal') @@ -199,7 +199,7 @@ selections are empty selections.selectSelect within selections selections.clear.mainClear main selectionsAlt+, (editorTextFocus && dance.mode == 'normal')Alt+, (editorTextFocus && dance.mode == 'select') selections.clear.secondaryClear secondary selections, (editorTextFocus && dance.mode == 'normal'), (editorTextFocus && dance.mode == 'select') -selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal') +selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal')Shift+Alt+C (editorTextFocus && dance.mode == 'select') selections.faceBackwardBackward selections selections.faceForwardForward selectionsShift+Alt+; (editorTextFocus && dance.mode == 'normal') selections.filter.regexpKeep matching selectionsAlt+K (editorTextFocus && dance.mode == 'normal')Alt+K (editorTextFocus && dance.mode == 'select') @@ -1680,14 +1680,15 @@ Copy selections below. #### Variant -| Title | Identifier | Keybinding | Command | -| --------------------- | ------------ | ------------------------- | ----------------------------------------- | -| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal) | `[".selections.copy", { direction: -1 }]` | +| Title | Identifier | Keybinding | Command | +| --------------------- | ------------ | -------------------------------------------------- | ----------------------------------------- | +| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal), `s-a-c` (helix: select) | `[".selections.copy", { direction: -1 }]` | This command: - may be repeated with a given number of repetitions. -Default keybinding: `s-c` (kakoune: normal) +Default keybinding: `s-c` (core: normal) +`s-c` (helix: select) diff --git a/src/commands/layouts/azerty.fr.md b/src/commands/layouts/azerty.fr.md index d684bd8f..700dc652 100644 --- a/src/commands/layouts/azerty.fr.md +++ b/src/commands/layouts/azerty.fr.md @@ -170,7 +170,7 @@ selections are empty select.verticallySelect vertically selectionsselections.changeDirectionChange direction of selectionsAlt+; (editorTextFocus && dance.mode == 'normal')Alt+; (editorTextFocus && dance.mode == 'select') selections.changeOrderReverse selections -selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal') +selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal')Shift+C (editorTextFocus && dance.mode == 'select') selections.expandToLinesExpand to linesX (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'select') selections.filterFilter selectionsShift+4 (editorTextFocus && dance.mode == 'normal')Shift+4 (editorTextFocus && dance.mode == 'select') selections.mergeMerge contiguous selectionsShift+Alt+- (editorTextFocus && dance.mode == 'normal') @@ -184,7 +184,7 @@ selections are empty selections.selectSelect within selections selections.clear.mainClear main selectionsAlt+, (editorTextFocus && dance.mode == 'normal')Alt+, (editorTextFocus && dance.mode == 'select') selections.clear.secondaryClear secondary selections, (editorTextFocus && dance.mode == 'normal'), (editorTextFocus && dance.mode == 'select') -selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal') +selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal')Shift+Alt+C (editorTextFocus && dance.mode == 'select') selections.faceBackwardBackward selections selections.faceForwardForward selectionsShift+Alt+; (editorTextFocus && dance.mode == 'normal') selections.filter.regexpKeep matching selectionsAlt+K (editorTextFocus && dance.mode == 'normal')Alt+K (editorTextFocus && dance.mode == 'select') @@ -1665,14 +1665,15 @@ Copy selections below. #### Variant -| Title | Identifier | Keybinding | Command | -| --------------------- | ------------ | ------------------------- | ----------------------------------------- | -| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal) | `[".selections.copy", { direction: -1 }]` | +| Title | Identifier | Keybinding | Command | +| --------------------- | ------------ | -------------------------------------------------- | ----------------------------------------- | +| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal), `s-a-c` (helix: select) | `[".selections.copy", { direction: -1 }]` | This command: - may be repeated with a given number of repetitions. -Default keybinding: `s-c` (kakoune: normal) +Default keybinding: `s-c` (core: normal) +`s-c` (helix: select) diff --git a/src/commands/layouts/qwerty.md b/src/commands/layouts/qwerty.md index 5d8bd26f..03a58812 100644 --- a/src/commands/layouts/qwerty.md +++ b/src/commands/layouts/qwerty.md @@ -170,7 +170,7 @@ selections are empty select.verticallySelect vertically selectionsselections.changeDirectionChange direction of selectionsAlt+; (editorTextFocus && dance.mode == 'normal')Alt+; (editorTextFocus && dance.mode == 'select') selections.changeOrderReverse selections -selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal') +selections.copyCopy selections belowShift+C (editorTextFocus && dance.mode == 'normal')Shift+C (editorTextFocus && dance.mode == 'select') selections.expandToLinesExpand to linesX (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'normal')Shift+X (editorTextFocus && dance.mode == 'select') selections.filterFilter selectionsShift+4 (editorTextFocus && dance.mode == 'normal')Shift+4 (editorTextFocus && dance.mode == 'select') selections.mergeMerge contiguous selectionsShift+Alt+- (editorTextFocus && dance.mode == 'normal') @@ -184,7 +184,7 @@ selections are empty selections.selectSelect within selections selections.clear.mainClear main selectionsAlt+, (editorTextFocus && dance.mode == 'normal')Alt+, (editorTextFocus && dance.mode == 'select') selections.clear.secondaryClear secondary selections, (editorTextFocus && dance.mode == 'normal'), (editorTextFocus && dance.mode == 'select') -selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal') +selections.copy.aboveCopy selections aboveShift+Alt+C (editorTextFocus && dance.mode == 'normal')Shift+Alt+C (editorTextFocus && dance.mode == 'select') selections.faceBackwardBackward selections selections.faceForwardForward selectionsShift+Alt+; (editorTextFocus && dance.mode == 'normal') selections.filter.regexpKeep matching selectionsAlt+K (editorTextFocus && dance.mode == 'normal')Alt+K (editorTextFocus && dance.mode == 'select') @@ -1665,14 +1665,15 @@ Copy selections below. #### Variant -| Title | Identifier | Keybinding | Command | -| --------------------- | ------------ | ------------------------- | ----------------------------------------- | -| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal) | `[".selections.copy", { direction: -1 }]` | +| Title | Identifier | Keybinding | Command | +| --------------------- | ------------ | -------------------------------------------------- | ----------------------------------------- | +| Copy selections above | `copy.above` | `s-a-c` (kakoune: normal), `s-a-c` (helix: select) | `[".selections.copy", { direction: -1 }]` | This command: - may be repeated with a given number of repetitions. -Default keybinding: `s-c` (kakoune: normal) +Default keybinding: `s-c` (core: normal) +`s-c` (helix: select) diff --git a/src/commands/selections.ts b/src/commands/selections.ts index 9f51b78f..6e2f8cb9 100644 --- a/src/commands/selections.ts +++ b/src/commands/selections.ts @@ -797,13 +797,13 @@ export async function sort( /** * Copy selections below. * - * @keys `s-c` (kakoune: normal) + * @keys `s-c` (core: normal), `s-c` (helix: select) * * #### Variant * - * | Title | Identifier | Keybinding | Command | - * | --------------------- | ------------ | ------------------------- | ----------------------------------------- | - * | Copy selections above | `copy.above` | `s-a-c` (kakoune: normal) | `[".selections.copy", { direction: -1 }]` | + * | Title | Identifier | Keybinding | Command | + * | --------------------- | ------------ | -------------------------------------------------- | ----------------------------------------- | + * | Copy selections above | `copy.above` | `s-a-c` (kakoune: normal), `s-a-c` (helix: select) | `[".selections.copy", { direction: -1 }]` | */ export function copy( _: Context,