mirror of
https://github.com/Silverquark/dance.git
synced 2024-08-16 22:30:55 +03:00
feat: toggle comments with ctrl+c
This commit is contained in:
parent
a4f099e0c0
commit
ca2b93176c
16
package.json
generated
16
package.json
generated
@ -3763,6 +3763,22 @@
|
||||
"addDigits": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+C",
|
||||
"when": "editorTextFocus && dance.mode == 'normal'",
|
||||
"command": "editor.action.commentLine",
|
||||
"args": {
|
||||
"$exclude": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+C",
|
||||
"when": "editorTextFocus && dance.mode == 'visual'",
|
||||
"command": "editor.action.commentLine",
|
||||
"args": {
|
||||
"$exclude": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "Shift+;",
|
||||
"when": "editorTextFocus && dance.mode == 'normal'",
|
||||
|
16
src/api/keybindings/built-in.ts
generated
16
src/api/keybindings/built-in.ts
generated
@ -852,6 +852,22 @@ const builtinKeybindings = [
|
||||
addDigits: 9,
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "Ctrl+C",
|
||||
when: "editorTextFocus && dance.mode == 'normal'",
|
||||
command: "editor.action.commentLine",
|
||||
args: {
|
||||
"$exclude": [],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "Ctrl+C",
|
||||
when: "editorTextFocus && dance.mode == 'visual'",
|
||||
command: "editor.action.commentLine",
|
||||
args: {
|
||||
"$exclude": [],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "Shift+;",
|
||||
when: "editorTextFocus && dance.mode == 'normal'",
|
||||
|
7
src/commands/README.md
generated
7
src/commands/README.md
generated
@ -972,9 +972,16 @@ Miscellaneous commands that don't deserve their own category.
|
||||
By default, Dance also exports the following keybindings for existing
|
||||
commands:
|
||||
|
||||
<<<<<<< HEAD
|
||||
| Keybinding | Command |
|
||||
| -------------------- | -------------------------------------------- |
|
||||
| `s-;` (core: normal) | `["workbench.action.showCommands", { ... }]` |
|
||||
=======
|
||||
| Keybinding | Command |
|
||||
| ------------------------------ | -------------------------------------------- |
|
||||
| `s-;` (normal), `s-;` (visual) | `["workbench.action.showCommands", { ... }]` |
|
||||
| `c-c` (normal), `c-c` (visual) | `["editor.action.commentLine", { ... }]` |
|
||||
>>>>>>> 9e59a1b (feat: toggle comments with ctrl+c)
|
||||
|
||||
<a name="cancel" />
|
||||
|
||||
|
@ -14,6 +14,7 @@ import { ArgumentError, CancellationError, InputError } from "../utils/errors";
|
||||
* | Keybinding | Command |
|
||||
* | -------------------------------------------- | -------------------------------------------- |
|
||||
* | `s-;` (helix: normal), `s-;` (helix: visual) | `["workbench.action.showCommands", { ... }]` |
|
||||
* | `c-c` (helix: normal), `c-c` (helix: visual) | `["editor.action.commentLine", { ... }]` |
|
||||
*/
|
||||
declare module "./misc";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user