diff --git a/extensions/helix/package.json b/extensions/helix/package.json
index 8bc2063..0d31642 100644
--- a/extensions/helix/package.json
+++ b/extensions/helix/package.json
@@ -1896,6 +1896,24 @@
]
}
},
+ {
+ "key": "Space",
+ "when": "editorTextFocus && dance.mode == 'helix/normal'",
+ "title": "Space",
+ "command": "dance.openMenu",
+ "args": {
+ "menu": "space"
+ }
+ },
+ {
+ "key": "Space",
+ "when": "editorTextFocus && dance.mode == 'helix/select'",
+ "title": "Space",
+ "command": "dance.openMenu",
+ "args": {
+ "menu": "space"
+ }
+ },
{
"key": "Shift+'",
"when": "editorTextFocus && dance.mode == 'helix/normal'",
@@ -3287,11 +3305,6 @@
"command": "dance.ignore",
"when": "editorTextFocus && dance.mode == 'helix/normal'"
},
- {
- "key": "Space",
- "command": "dance.ignore",
- "when": "editorTextFocus && dance.mode == 'helix/normal'"
- },
{
"key": "NumPad_Add",
"command": "dance.ignore",
@@ -3417,11 +3430,6 @@
"command": "dance.ignore",
"when": "editorTextFocus && dance.mode == 'helix/select'"
},
- {
- "key": "Space",
- "command": "dance.ignore",
- "when": "editorTextFocus && dance.mode == 'helix/select'"
- },
{
"key": "NumPad_Add",
"command": "dance.ignore",
diff --git a/src/api/data/commands.yaml b/src/api/data/commands.yaml
index 28af5a4..06ddf79 100644
--- a/src/api/data/commands.yaml
+++ b/src/api/data/commands.yaml
@@ -783,12 +783,13 @@ openMenu:
#### Predefined menus
- | Title | Keybinding | Command |
- | ------------- | ------------------- | ------------------------------------------------------------------------ |
- | Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
- | Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
- | Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
- | Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+ | Title | Keybinding | Command |
+ | ------------- | -------------------------------------- | ------------------------------------------------------------------------ |
+ | Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
+ | Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
+ | Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
+ | Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+ | Space | `space` (helix: normal; helix: select) | `[".openMenu", { menu: "space" }]` |
run:
title:
@@ -2857,6 +2858,16 @@ anonymous:
qwerty: |-
`]` (helix: normal)
+ - title:
+ en: Space
+
+ commands: |-
+ [".openMenu", { menu: "space" }]
+
+ keys:
+ qwerty: |-
+ `space` (helix: normal; helix: select)
+
- title:
en: Show view menu
diff --git a/src/commands/README.md b/src/commands/README.md
index c569210..d05617c 100644
--- a/src/commands/README.md
+++ b/src/commands/README.md
@@ -862,7 +862,7 @@ This command:
-### [`openMenu`](./misc.ts#L309-L340)
+### [`openMenu`](./misc.ts#L309-L341)
Open menu.
@@ -876,12 +876,13 @@ like `jj`.
#### Predefined menus
-| Title | Keybinding | Command |
-| ------------- | ------------------- | ------------------------------------------------------------------------ |
-| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
-| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
-| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
-| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Title | Keybinding | Command |
+| ------------- | -------------------------------------- | ------------------------------------------------------------------------ |
+| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
+| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
+| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
+| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Space | `space` (helix: normal; helix: select) | `[".openMenu", { menu: "space" }]` |
This command:
@@ -895,7 +896,7 @@ This command:
-### [`changeInput`](./misc.ts#L381-L395)
+### [`changeInput`](./misc.ts#L382-L396)
Change current input.
@@ -912,7 +913,7 @@ This command:
-### [`ifEmpty`](./misc.ts#L405-L416)
+### [`ifEmpty`](./misc.ts#L406-L417)
Executes one of the specified commands depending on whether the current
selections are empty.
diff --git a/src/commands/layouts/azerty.fr.md b/src/commands/layouts/azerty.fr.md
index 1e8846f..a946f9d 100644
--- a/src/commands/layouts/azerty.fr.md
+++ b/src/commands/layouts/azerty.fr.md
@@ -847,7 +847,7 @@ This command:
-### [`openMenu`](../misc.ts#L309-L340)
+### [`openMenu`](../misc.ts#L309-L341)
Open menu.
@@ -861,12 +861,13 @@ like `jj`.
#### Predefined menus
-| Title | Keybinding | Command |
-| ------------- | ------------------- | ------------------------------------------------------------------------ |
-| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
-| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
-| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
-| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Title | Keybinding | Command |
+| ------------- | -------------------------------------- | ------------------------------------------------------------------------ |
+| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
+| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
+| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
+| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Space | `space` (helix: normal; helix: select) | `[".openMenu", { menu: "space" }]` |
This command:
@@ -880,7 +881,7 @@ This command:
-### [`changeInput`](../misc.ts#L381-L395)
+### [`changeInput`](../misc.ts#L382-L396)
Change current input.
@@ -897,7 +898,7 @@ This command:
-### [`ifEmpty`](../misc.ts#L405-L416)
+### [`ifEmpty`](../misc.ts#L406-L417)
Executes one of the specified commands depending on whether the current
selections are empty.
diff --git a/src/commands/layouts/qwerty.md b/src/commands/layouts/qwerty.md
index 88baca4..ca02433 100644
--- a/src/commands/layouts/qwerty.md
+++ b/src/commands/layouts/qwerty.md
@@ -847,7 +847,7 @@ This command:
-### [`openMenu`](../misc.ts#L309-L340)
+### [`openMenu`](../misc.ts#L309-L341)
Open menu.
@@ -861,12 +861,13 @@ like `jj`.
#### Predefined menus
-| Title | Keybinding | Command |
-| ------------- | ------------------- | ------------------------------------------------------------------------ |
-| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
-| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
-| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
-| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Title | Keybinding | Command |
+| ------------- | -------------------------------------- | ------------------------------------------------------------------------ |
+| Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
+| Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
+| Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
+| Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+| Space | `space` (helix: normal; helix: select) | `[".openMenu", { menu: "space" }]` |
This command:
@@ -880,7 +881,7 @@ This command:
-### [`changeInput`](../misc.ts#L381-L395)
+### [`changeInput`](../misc.ts#L382-L396)
Change current input.
@@ -897,7 +898,7 @@ This command:
-### [`ifEmpty`](../misc.ts#L405-L416)
+### [`ifEmpty`](../misc.ts#L406-L417)
Executes one of the specified commands depending on whether the current
selections are empty.
diff --git a/src/commands/misc.ts b/src/commands/misc.ts
index 8f8d31f..c049225 100644
--- a/src/commands/misc.ts
+++ b/src/commands/misc.ts
@@ -319,12 +319,13 @@ const menuHistory: string[] = [];
*
* #### Predefined menus
*
- * | Title | Keybinding | Command |
- * | ------------- | ------------------- | ------------------------------------------------------------------------ |
- * | Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
- * | Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
- * | Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
- * | Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+ * | Title | Keybinding | Command |
+ * | ------------- | -------------------------------------- | ------------------------------------------------------------------------ |
+ * | Left bracket | `[` (helix: normal) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "select" } ] }]` |
+ * | Left bracket | `[` (helix: select) | `[".openMenu", { menu: "leftBracket", pass: [ { shift: "extend" } ] }]` |
+ * | Right bracket | `]` (helix: normal) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "select" } ] }]` |
+ * | Right bracket | `]` (helix: select) | `[".openMenu", { menu: "rightBracket", pass: [ { shift: "extend" } ] }]` |
+ * | Space | `space` (helix: normal; helix: select) | `[".openMenu", { menu: "space" }]` |
*
* @noreplay
*/