remove a-o and s-a-o. they are not helix keybindings and clash with the builtin organize imports

This commit is contained in:
Leo Lüker 2022-11-23 22:17:48 +01:00
parent c33b9b32dc
commit a81085979c
16 changed files with 1859 additions and 2125 deletions

152
package.json generated
View File

@ -1,7 +1,7 @@
{
"name": "dancehelix",
"description": "Fork of Dance with helix keybindings (Unfinished)",
"version": "0.5.15",
"version": "0.5.13",
"license": "ISC",
"author": {
"name": "Leo",
@ -29,7 +29,7 @@
"test": "yarn run compile && node ./out/test/run.js",
"package": "vsce package --allow-star-activation",
"publish": "vsce publish --allow-star-activation",
"publish:pre": "vsce publish --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json 0.5.12001"
"publish:pre": "vsce publish --allow-star-activation --pre-release --no-git-tag-version --no-update-package-json 0.5.13001"
},
"devDependencies": {
"@types/glob": "^7.2.0",
@ -1781,6 +1781,11 @@
"title": "Extend to line above",
"category": "Dance"
},
{
"command": "dance.select.line.below",
"title": "Select line below",
"category": "Dance"
},
{
"command": "dance.select.line.below.extend",
"title": "Extend to line below",
@ -2648,6 +2653,10 @@
"command": "dance.select.line.above.extend",
"when": "dance.mode == 'normal'"
},
{
"command": "dance.select.line.below",
"when": "dance.mode == 'normal'"
},
{
"command": "dance.select.line.below.extend",
"when": "dance.mode == 'normal'"
@ -3063,18 +3072,6 @@
"title": "Join lines and select inserted separators",
"command": "dance.edit.join.select"
},
{
"key": "Shift+Alt+O",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Insert new line above each selection",
"command": "dance.edit.newLine.above"
},
{
"key": "Shift+Alt+O",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Insert new line above each selection",
"command": "dance.edit.newLine.above"
},
{
"key": "Shift+O",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -3087,18 +3084,6 @@
"title": "Insert new line above and switch to insert",
"command": "dance.edit.newLine.above.insert"
},
{
"key": "Alt+O",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Insert new line below each selection",
"command": "dance.edit.newLine.below"
},
{
"key": "Alt+O",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Insert new line below each selection",
"command": "dance.edit.newLine.below"
},
{
"key": "O",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -3114,23 +3099,11 @@
{
"key": "P",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Paste after",
"command": "dance.edit.paste.after"
},
{
"key": "P",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Paste after",
"command": "dance.edit.paste.after"
},
{
"key": "Alt+P",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Paste after and select",
"command": "dance.edit.paste.after.select"
},
{
"key": "Alt+P",
"key": "P",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Paste after and select",
"command": "dance.edit.paste.after.select"
@ -3141,6 +3114,12 @@
"title": "Paste before and select",
"command": "dance.edit.paste.before.select"
},
{
"key": "Shift+P",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Paste before and select",
"command": "dance.edit.paste.before.select"
},
{
"key": "Alt+P",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -3148,10 +3127,10 @@
"command": "dance.edit.pasteAll.after.select"
},
{
"key": "Shift+P",
"key": "Alt+P",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Paste before",
"command": "dance.edit.paste.before"
"title": "Paste all after and select",
"command": "dance.edit.pasteAll.after.select"
},
{
"key": "Shift+Alt+P",
@ -3162,8 +3141,8 @@
{
"key": "Shift+Alt+P",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Paste before and select",
"command": "dance.edit.paste.before.select"
"title": "Paste all before and select",
"command": "dance.edit.pasteAll.before.select"
},
{
"key": "R",
@ -3185,13 +3164,7 @@
},
{
"key": "Ctrl+R",
"when": "editorTextFocus && dance.mode == 'insert'",
"title": "Pick register and replace",
"command": "dance.edit.selectRegister-insert"
},
{
"key": "Ctrl+R",
"when": "editorTextFocus && dance.mode == 'insert'",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Pick register and replace",
"command": "dance.edit.selectRegister-insert"
},
@ -4221,6 +4194,12 @@
"title": "Select whole buffer",
"command": "dance.select.buffer"
},
{
"key": "Shift+J",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Extend down",
"command": "dance.select.down.extend"
},
{
"key": "Shift+Down",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -4389,6 +4368,12 @@
"title": "Go to",
"command": "dance.select.to.jump"
},
{
"key": "Shift+K",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Extend up",
"command": "dance.select.up.extend"
},
{
"key": "Shift+Up",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -4552,15 +4537,12 @@
"command": "dance.selections.clear.main"
},
{
<<<<<<< HEAD
=======
"key": "Alt+,",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Clear main selections",
"command": "dance.selections.clear.main"
},
{
>>>>>>> 03ae8e0 (fix x and ,/;)
"key": ",",
"when": "editorTextFocus && dance.mode == 'normal'",
"title": "Clear secondary selections",
@ -4591,8 +4573,8 @@
"command": "dance.selections.copy.above"
},
{
"key": "X",
"when": "editorTextFocus && dance.mode == 'normal'",
"key": "Shift+Alt+C",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Copy selections above",
"command": "dance.selections.copy.above"
},
@ -4746,8 +4728,8 @@
{
"key": "S",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Select within selections",
"command": "dance.selections.select"
"title": "Leap or select",
"command": "dance.selections.select.orLeap"
},
{
"key": "Shift+S",
@ -4770,8 +4752,8 @@
{
"key": "Alt+S",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Split selections at line boundaries",
"command": "dance.selections.splitLines"
"title": "Leap or select backward",
"command": "dance.selections.splitLines.orLeap.backward"
},
{
"key": "Enter",
@ -4779,6 +4761,12 @@
"title": "Toggle selection indices",
"command": "dance.selections.toggleIndices"
},
{
"key": "Enter",
"when": "editorTextFocus && dance.mode == 'visual'",
"title": "Toggle selection indices",
"command": "dance.selections.toggleIndices"
},
{
"key": "Alt+X",
"when": "editorTextFocus && dance.mode == 'normal'",
@ -4914,7 +4902,17 @@
},
{
"command": "dance.ignore",
"key": "Shift+X",
"key": "Shift+H",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"command": "dance.ignore",
"key": "Shift+L",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"command": "dance.ignore",
"key": "Shift+V",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
@ -4952,11 +4950,6 @@
"key": "=",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"command": "dance.ignore",
"key": "Space",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"command": "dance.ignore",
"key": "NumPad_Add",
@ -5039,12 +5032,7 @@
},
{
"command": "dance.ignore",
"key": "Shift+=",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "dance.ignore",
"key": "Shift+Space",
"key": "=",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
@ -5057,6 +5045,26 @@
"key": "NumPad_Subtract",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "dance.ignore",
"key": "Shift+=",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "dance.ignore",
"key": "Shift+Space",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "dance.ignore",
"key": "Shift+NumPad_Add",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "dance.ignore",
"key": "Shift+NumPad_Subtract",
"when": "editorTextFocus && dance.mode == 'visual'"
},
{
"command": "-lineBreakInsert",
"key": "Ctrl+O",

File diff suppressed because it is too large Load Diff

View File

@ -158,18 +158,6 @@ const builtinKeybindings = [
title: "Join lines and select inserted separators",
command: "dance.edit.join.select",
},
{
key: "Shift+Alt+O",
when: "editorTextFocus && dance.mode == 'normal'",
title: "Insert new line above each selection",
command: "dance.edit.newLine.above",
},
{
key: "Shift+Alt+O",
when: "editorTextFocus && dance.mode == 'visual'",
title: "Insert new line above each selection",
command: "dance.edit.newLine.above",
},
{
key: "Shift+O",
when: "editorTextFocus && dance.mode == 'normal'",
@ -182,18 +170,6 @@ const builtinKeybindings = [
title: "Insert new line above and switch to insert",
command: "dance.edit.newLine.above.insert",
},
{
key: "Alt+O",
when: "editorTextFocus && dance.mode == 'normal'",
title: "Insert new line below each selection",
command: "dance.edit.newLine.below",
},
{
key: "Alt+O",
when: "editorTextFocus && dance.mode == 'visual'",
title: "Insert new line below each selection",
command: "dance.edit.newLine.below",
},
{
key: "O",
when: "editorTextFocus && dance.mode == 'normal'",

1354
src/commands/README.md generated

File diff suppressed because it is too large Load Diff

View File

@ -31,20 +31,20 @@ declare module "./edit";
*
* | Title | Identifier | Keybinding | Commands |
* | ---------------------------------- | ------------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
* | Pick register and replace | `selectRegister-insert` | `c-r` (helix: normal), `c-r` (helix: visual), `c-r` (helix: insert) | `[".selectRegister", { +register }], [".edit.insert", { ... }]` |
* | Pick register and replace | `selectRegister-insert` | `c-r` (helix: normal), `c-r` (helix: visual) | `[".selectRegister", { +register }], [".edit.insert", { ... }]` |
* | Paste before | `paste.before` | | `[".edit.insert", { handleNewLine: true, where: "start", ... }]` |
* | Paste after | `paste.after` | | `[".edit.insert", { handleNewLine: true, where: "end" , ... }]` |
* | Paste before and select | `paste.before.select` | `s-p` (helix: normal) `s-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "start", shift: "select", ... }]` |
* | Paste after and select | `paste.after.select` | `p` (helix: normal) `p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "end" , shift: "select", ... }]` |
* | Paste before and select | `paste.before.select` | `s-p` (helix: normal), `s-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "start", shift: "select", ... }]` |
* | Paste after and select | `paste.after.select` | `p` (helix: normal) , `p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "end" , shift: "select", ... }]` |
* | Paste all before | `pasteAll.before` | | `[".edit.insert", { handleNewLine: true, where: "start", all: true, ... }]` |
* | Paste all after | `pasteAll.after` | | `[".edit.insert", { handleNewLine: true, where: "end" , all: true, ... }]` |
* | Paste all before and select | `pasteAll.before.select` | `s-a-p` (helix: normal) `s-a-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "start", all: true, shift: "select", ... }]` |
* | Paste all after and select | `pasteAll.after.select` | `a-p` (helix: normal) `a-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "end" , all: true, shift: "select", ... }]` |
* | Delete | `delete` | `a-d` (helix: normal) `a-d` (helix: visual) | `[".edit.insert", { register: "_", ... }]` |
* | Delete and switch to Insert | `delete-insert` | `a-c` (helix: normal) `a-c` (helix: visual) | `[".modes.set", { mode: "insert", +mode }], [".edit.insert", { register: "_", ... }]` |
* | Copy and delete | `yank-delete` | `d` (helix: normal) `d` (helix: visual) | `[".selections.saveText", { +register }], [".edit.insert", { register: "_", ... }]` |
* | Copy, delete and switch to Insert | `yank-delete-insert` | `c` (helix: normal) `c` (helix: visual) | `[".selections.saveText", { +register }], [".modes.set", { mode: "insert", +mode }], [".edit.insert", { register: "_", ... }]` |
* | Copy and replace | `yank-replace` | `s-r` (helix: normal), `s-r` (helix: visual) | `[".selections.saveText", { register: "tmp" }], [".edit.insert"], [".updateRegister", { copyFrom: "tmp", ... }]` |
* | Paste all before and select | `pasteAll.before.select` | `s-a-p` (helix: normal), `s-a-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "start", all: true, shift: "select", ... }]` |
* | Paste all after and select | `pasteAll.after.select` | `a-p` (helix: normal) , `a-p` (helix: visual) | `[".edit.insert", { handleNewLine: true, where: "end" , all: true, shift: "select", ... }]` |
* | Delete | `delete` | `a-d` (helix: normal) , `a-d` (helix: visual) | `[".edit.insert", { register: "_", ... }]` |
* | Delete and switch to Insert | `delete-insert` | `a-c` (helix: normal) , `a-c` (helix: visual) | `[".modes.set", { mode: "insert", +mode }], [".edit.insert", { register: "_", ... }]` |
* | Copy and delete | `yank-delete` | `d` (helix: normal) , `d` (helix: visual) | `[".selections.saveText", { +register }], [".edit.insert", { register: "_", ... }]` |
* | Copy, delete and switch to Insert | `yank-delete-insert` | `c` (helix: normal) , `c` (helix: visual) | `[".selections.saveText", { +register }], [".modes.set", { mode: "insert", +mode }], [".edit.insert", { register: "_", ... }]` |
* | Copy and replace | `yank-replace` | `s-r` (helix: normal) , `s-r` (helix: visual) | `[".selections.saveText", { register: "tmp" }], [".edit.insert"], [".updateRegister", { copyFrom: "tmp", ... }]` |
*/
export async function insert(
_: Context,
@ -351,8 +351,6 @@ export function copyIndentation(
* keep the current selections.
*
*
* @keys `s-a-o` (normal), `s-a-o` (visual)
*
* #### Additional keybindings
*
* | Title | Identifier | Keybinding | Commands |
@ -390,8 +388,6 @@ export function newLine_above(
* keep the current selections.
*
*
* @keys `a-o` (helix: normal), `a-o` (helix: visual)
*
* #### Additional keybindings
*
* | Title | Identifier | Keybinding | Commands |

View File

@ -98,7 +98,7 @@ export async function repeat(
/**
* Repeat last edit without a command.
*
* @keys `.` (helix: normal), `NumPad_Decimal` (helix: normal), `.` (helix: visual), `NumPad_Decimal` (helix: visual)
* @keys `.` (helix: normal) , `NumPad_Decimal` (helix: normal) , `.` (helix: visual) , `NumPad_Decimal` (helix: visual)
* @noreplay
*/
export async function repeat_edit(_: Context, repetitions: number) {
@ -167,7 +167,7 @@ const recordingPerRegister = new WeakMap<Register, ActiveRecording>();
/**
* Start recording.
*
* @keys `s-q` (helix: normal, !recording), `s-q` (helix: visual, !recording)
* @keys `s-q` (helix: normal, !recording) , `s-q` (helix: visual, !recording)
* @noreplay
*/
export function recording_start(
@ -188,7 +188,7 @@ export function recording_start(
/**
* Stop recording.
*
* @keys `escape` (helix: normal, recording), `s-q` (helix: normal, recording), `escape` (helix: visual, recording), `s-q` (helix: visual, recording)
* @keys `escape` (helix: normal, recording) , `s-q` (helix: normal, recording) , `escape` (helix: visual, recording) , `s-q` (helix: visual, recording)
* @noreplay
*/
export function recording_stop(

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -235,6 +235,7 @@ import {
lineStart as select_lineStart,
line_above as select_line_above,
line_above_extend as select_line_above_extend,
line_below as select_line_below,
line_below_extend as select_line_below_extend,
middleVisibleLine as select_middleVisibleLine,
to as select_to,
@ -551,6 +552,11 @@ export const commands: Commands = function () {
(_, argument) => _.runAsync((_) => select_line_above_extend(_, getCount(_, argument))),
CommandDescriptor.Flags.RequiresActiveEditor,
),
"dance.select.line.below": new CommandDescriptor(
"dance.select.line.below",
(_, argument) => _.runAsync((_) => select_line_below(_, getCount(_, argument))),
CommandDescriptor.Flags.RequiresActiveEditor,
),
"dance.select.line.below.extend": new CommandDescriptor(
"dance.select.line.below.extend",
(_, argument) => _.runAsync((_) => select_line_below_extend(_, getCount(_, argument))),

View File

@ -12,10 +12,10 @@ import { select } from "./selections";
/**
* Match menu.
*
* | Title | Keybinding | Command |
* | ----------------------- | ------------ | ---------------------------------- |
* | Show match menu | `m` (normal) | `[".openMenu", { menu: "match" }]` |
* | Show match menu | `m` (visual) | `[".openMenu", { menu: "match" }]` |
* | Title | Keybinding | Command |
* | ----------------------- | ------------------- | ---------------------------------- |
* | Show match menu | `m` (helix: normal) | `[".openMenu", { menu: "match" }]` |
* | Show match menu | `m` (helix: visual) | `[".openMenu", { menu: "match" }]` |
*/
declare module "./match";
@ -184,8 +184,8 @@ export async function surround(
endText = input;
}
await insert(_, selections, register, true, false, 0, false, undefined, endText, "end");
await insert(_, selections, register, true, false, 0, false, undefined, startText, "start");
await insert(_, selections, register, true, false, false, 0, undefined, endText, "end");
await insert(_, selections, register, true, false, false, 0, undefined, startText, "start");
}

View File

@ -11,11 +11,11 @@ declare module "./modes";
*
* #### Variants
*
* | Title | Identifier | Keybinding | Command |
* | ------------------ | ------------ | -------------------------------------------------- | ----------------------------------------------------------- |
* | Set mode to Normal | `set.normal` | `escape` (helix: insert), `escape` (helix: visual), `v` (helix: visual) | `[".modes.set", { mode: "normal" }], ["hideSuggestWidget"]` |
* | Set mode to Insert | `set.insert` | | `[".modes.set", { mode: "insert" }]` |
* | Set mode to Visual | `set.visual` | `v` (helix: normal) | `[".modes.set", { mode: "visual" }]` |
* | Title | Identifier | Keybinding | Command |
* | ------------------ | ------------ | ------------------------------------------------------------------------- | ----------------------------------------------------------- |
* | Set mode to Normal | `set.normal` | `escape` (helix: insert) , `escape` (helix: visual) , `v` (helix: visual) | `[".modes.set", { mode: "normal" }], ["hideSuggestWidget"]` |
* | Set mode to Insert | `set.insert` | | `[".modes.set", { mode: "insert" }]` |
* | Set mode to Visual | `set.visual` | `v` (helix: normal) | `[".modes.set", { mode: "visual" }]` |
*
* Other variants are provided to switch to insert mode:
*

View File

@ -14,7 +14,7 @@ declare module "./search";
/**
* Search.
*
* @keys `/` (helix: normal), `NumPad_Divide` (helix: normal), `/` (helix: visual), `NumPad_Divide` (helix: visual)
* @keys `/` (helix: normal) , `NumPad_Divide` (helix: normal) , `/` (helix: visual) , `NumPad_Divide` (helix: visual)
*
* | Title | Identifier | Keybinding | Command |
* | ------------------------ | ----------------- | --------------------- | ------------------------------------------------------ |
@ -83,11 +83,11 @@ export async function search(
/**
* Search current selection.
*
* @keys `a-*` (helix: normal), `a-NumPad_Multiply` (helix: normal)
* @keys `a-*` (helix: normal) , `a-NumPad_Multiply` (helix: normal)
*
* | Title | Identifier | Keybinding | Command |
* | -------------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
* | Search current selection (smart) | `selection.smart` | `*` (helix: normal), `NumPad_Multiply` (helix: normal), `*` (helix: visual), `NumPad_Multiply` (helix: visual) | `[".search.selection", { smart: true, +register }]` |
* | Title | Identifier | Keybinding | Command |
* | -------------------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
* | Search current selection (smart) | `selection.smart` | `*` (helix: normal) , `NumPad_Multiply` (helix: normal) , `*` (helix: visual) , `NumPad_Multiply` (helix: visual) | `[".search.selection", { smart: true, +register }]` |
*/
export function selection(
document: vscode.TextDocument,

View File

@ -38,12 +38,12 @@ const preferredColumnsToken =
*
* #### Variants
*
* | Title | Identifier | Keybinding | Command |
* | ----------- | ------------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
* | Jump down | `down.jump` | `j` (helix: normal) , `down` (helix: normal) | `[".select.vertically", { direction: 1, shift: "jump" , ... }]` |
* | Extend down | `down.extend` | `s-j` (helix: helix: normal),`s-down` (helix: normal), `j` (helix: visual), `down` (helix: visual) | `[".select.vertically", { direction: 1, shift: "extend", ... }]` |
* | Jump up | `up.jump` | `k` (helix: normal) , `up` (helix: normal) | `[".select.vertically", { direction: -1, shift: "jump" , ... }]` |
* | Extend up | `up.extend` | `s-k` (helix: helix: normal),`s-up` (helix: normal) , `k` (helix: visual), `up` (helix: visual) | `[".select.vertically", { direction: -1, shift: "extend", ... }]` |
* | Title | Identifier | Keybinding | Command |
* | ----------- | ------------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
* | Jump down | `down.jump` | `j` (helix: normal) , `down` (helix: normal) | `[".select.vertically", { direction: 1, shift: "jump" , ... }]` |
* | Extend down | `down.extend` | `s-j` (helix: normal), `s-down` (helix: normal) , `j` (helix: visual) , `down` (helix: visual) | `[".select.vertically", { direction: 1, shift: "extend", ... }]` |
* | Jump up | `up.jump` | `k` (helix: normal) , `up` (helix: normal) | `[".select.vertically", { direction: -1, shift: "jump" , ... }]` |
* | Extend up | `up.extend` | `s-k` (helix: normal), `s-up` (helix: normal) , `k` (helix: visual) , `up` (helix: visual) | `[".select.vertically", { direction: -1, shift: "extend", ... }]` |
*
* The following keybindings are also defined:
*
@ -230,12 +230,12 @@ export function vertically(
*
* #### Variants
*
* | Title | Identifier | Keybinding | Command |
* | ------------ | -------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------- |
* | Jump right | `right.jump` | `l` (helix: normal), `right` (helix: normal) | `[".select.horizontally", { direction: 1, shift: "jump" , ... }]` |
* | Extend right | `right.extend` | `s-right` (helix: normal), `l` (helix: visual), `right` (helix: visual) | `[".select.horizontally", { direction: 1, shift: "extend", ... }]` |
* | Jump left | `left.jump` | `h` (helix: normal), `left` (helix: normal) | `[".select.horizontally", { direction: -1, shift: "jump" , ... }]` |
* | Extend left | `left.extend` | `s-left` (helix: normal), `h` (helix: visual), `left` (helix: visual) | `[".select.horizontally", { direction: -1, shift: "extend", ... }]` |
* | Title | Identifier | Keybinding | Command |
* | ------------ | -------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------- |
* | Jump right | `right.jump` | `l` (helix: normal) , `right` (helix: normal) | `[".select.horizontally", { direction: 1, shift: "jump" , ... }]` |
* | Extend right | `right.extend` | `s-right` (helix: normal), `l` (helix: visual) , `right` (helix: visual) | `[".select.horizontally", { direction: 1, shift: "extend", ... }]` |
* | Jump left | `left.jump` | `h` (helix: normal) , `left` (helix: normal) | `[".select.horizontally", { direction: -1, shift: "jump" , ... }]` |
* | Extend left | `left.extend` | `s-left` (helix: normal) , `h` (helix: visual) , `left` (helix: visual) | `[".select.horizontally", { direction: -1, shift: "extend", ... }]` |
*/
export function horizontally(
_: Context,
@ -458,18 +458,18 @@ export function line_above_extend(_: Context, count: number) {
/**
* Select to line start.
*
* @keys `a-h` (kakoune: normal), `home` (kakoune: normal)
* @keys `a-h` (helix: normal), `home` (helix: normal)
*
* #### Variants
*
* | Title | Identifier | Keybinding | Command |
* | -------------------- | ------------------ | ----------------------------------------------------- | ------------------------------------------------------------------ |
* | Jump to line start | `lineStart.jump` | | `[".select.lineStart", { shift: "jump" , ... }]` |
* | Extend to line start | `lineStart.extend` | `s-a-h` (kakoune: normal), `s-home` (kakoune: normal) | `[".select.lineStart", { shift: "extend", ... }]` |
* | Jump to line start (skip blank) | `lineStart.skipBlank.jump` | | `[".select.lineStart", { skipBlank: true, shift: "jump" , ... }]` |
* | Extend to line start (skip blank) | `lineStart.skipBlank.extend` | | `[".select.lineStart", { skipBlank: true, shift: "extend", ... }]` |
* | Jump to first line | `firstLine.jump` | | `[".select.lineStart", { count: 0, shift: "jump" , ... }]` |
* | Extend to first line | `firstLine.extend` | | `[".select.lineStart", { count: 0, shift: "extend", ... }]` |
* | Title | Identifier | Keybinding | Command |
* | --------------------------------- | ---------------------------- | ------------------------------------------------- | ------------------------------------------------------------------ |
* | Jump to line start | `lineStart.jump` | | `[".select.lineStart", { shift: "jump" , ... }]` |
* | Extend to line start | `lineStart.extend` | `s-a-h` (helix: normal), `s-home` (helix: normal) | `[".select.lineStart", { shift: "extend", ... }]` |
* | Jump to line start (skip blank) | `lineStart.skipBlank.jump` | | `[".select.lineStart", { skipBlank: true, shift: "jump" , ... }]` |
* | Extend to line start (skip blank) | `lineStart.skipBlank.extend` | | `[".select.lineStart", { skipBlank: true, shift: "extend", ... }]` |
* | Jump to first line | `firstLine.jump` | | `[".select.lineStart", { count: 0, shift: "jump" , ... }]` |
* | Extend to first line | `firstLine.extend` | | `[".select.lineStart", { count: 0, shift: "extend", ... }]` |
*/
export function lineStart(
_: Context,

View File

@ -297,10 +297,10 @@ const filterHistory: string[] = [];
*
* | Title | Identifier | Keybinding | Commands |
* | -------------------------- | ----------------------- | ------------------------------------------------ | ------------------------------------------------------------------------ |
* | Keep matching selections | `filter.regexp` | `s-k` (helix: normal), `s-k` (helix: visual) | `[".selections.filter", { defaultExpression: "/" , ... }]` |
* | Keep matching selections | `filter.regexp` | `s-k` (helix: normal) , `s-k` (helix: visual) | `[".selections.filter", { defaultExpression: "/" , ... }]` |
* | Clear matching selections | `filter.regexp.inverse` | `s-a-k` (helix: normal), `s-a-k` (helix: visual) | `[".selections.filter", { defaultExpression: "/", inverse: true, ... }]` |
* | Clear secondary selections | `clear.secondary` | `,` (helix: normal), `,` (helix: visual) | `[".selections.filter", { expression: "i === count" , ... }]` |
* | Clear main selections | `clear.main` | `a-,` (helix: normal), `a-,` (helix: visual) | `[".selections.filter", { expression: "i !== count" , ... }]` |
* | Clear secondary selections | `clear.secondary` | `,` (helix: normal) , `,` (helix: visual) | `[".selections.filter", { expression: "i === count" , ... }]` |
* | Clear main selections | `clear.main` | `a-,` (helix: normal) , `a-,` (helix: visual) | `[".selections.filter", { expression: "i !== count" , ... }]` |
*/
export function filter(
_: Context,
@ -799,7 +799,7 @@ export async function sort(
/**
* Copy selections below.
*
* @keys `s-c` (normal), `s-c` (visual)
* @keys `s-c` (helix: normal), `s-c` (helix: visual)
*
* #### Variant
*
@ -876,7 +876,7 @@ const indicesToken = PerEditorState.registerState<AutoDisposable>(/* isDisposabl
/**
* Toggle selection indices.
*
* @keys `enter` (dance: normal), `enter` (dance: visual)
* @keys `enter` (helix: normal), `enter` (helix: visual)
*
* #### Variants
*

View File

@ -5,8 +5,8 @@ import * as vscode from "vscode";
*
* #### Predefined keybindings
*
* | Title | Keybinding | Command |
* | ----------------------- | ---------------------------------- | --------------------------------------- |
* | Show space menu | `space` (normal), `space` (visual) | `[".openMenu", { menu: "space", ... }]` |
* | Title | Keybinding | Command |
* | ----------------------- | ------------------------------------------------ | --------------------------------------- |
* | Show space menu | `space` (helix: normal), `space` (helix: visual) | `[".openMenu", { menu: "space", ... }]` |
*/
declare module "./space";

View File

@ -5,8 +5,8 @@ import * as vscode from "vscode";
*
* #### Predefined keybindings
*
* | Title | Identifier | Keybinding | Command |
* | ----------------------- | ------------------------------ | ------------------------------ | ---------------------------------------- |
* | Show window menu | `windowMenu` | `c-w` (normal), `c-w` (visual) | `[".openMenu", { menu: "window", ... }]` |
* | Title | Identifier | Keybinding | Command |
* | ----------------------- | ------------------------------ | -------------------------------------------- | ---------------------------------------- |
* | Show window menu | `windowMenu` | `c-w` (helix: normal), `c-w` (helix: visual) | `[".openMenu", { menu: "window", ... }]` |
*/
declare module "./window";