Skip to content

Commit

Permalink
Update keymap wrappers to use kb-macro.active instead of kb-macro.rec…
Browse files Browse the repository at this point in the history
…ording
  • Loading branch information
tshino committed Jan 8, 2023
1 parent ff46f5d commit c04d267
Show file tree
Hide file tree
Showing 8 changed files with 1,477 additions and 1,477 deletions.
14 changes: 7 additions & 7 deletions keymap-wrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Click the keymap wrapper link in the table below, which opens a JSON file. Copy

| Keymap extension | Keymap wrapper | Last updated | Start recording | Stop recording | Playback |
| ---------------- | -------------- | ------------ | ---------- | --------- | -------- |
| [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings) | [link](ms-vscode.atom-keybindings.json) | 2022-12-30 | `Ctrl+Alt+R` | `Ctrl+Alt+R` | `Ctrl+Alt+P` |
| [Awesome Emacs Keymap](https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx) | [link](tuttieee.emacs-mcx.json) | 2022-11-26 | `C-x S-9` | `C-x S-0` | `C-x e` |
| [Delphi Keymap](https://marketplace.visualstudio.com/items?itemName=alefragnani.delphi-keybindings) | [link](alefragnani.delphi-keybindings.json) | 2022-10-09 | `Ctrl/Cmd+Shift+R` | `Ctrl/Cmd+Shift+R` | `Ctrl/Cmd+Shift+P` |
| [Notepad++ Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.notepadplusplus-keybindings) | [link](ms-vscode.notepadplusplus-keybindings.json) | 2021-12-26 | `Ctrl+Shift+R` | `Ctrl+Shift+R` | `Ctrl+Shift+P` |
| [Sublime Text Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.sublime-keybindings) | [link](ms-vscode.sublime-keybindings.json) | 2021-12-21 | `Ctrl/Cmd+Q` | `Ctrl/Cmd+Q` | `Ctrl/Cmd+Shift+Q` |
| [Visual Studio Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vs-keybindings) | [link](ms-vscode.vs-keybindings.json) | 2022-04-05 | `Ctrl+M R` | `Ctrl+M R` | `Ctrl+M Enter` |
| [Vz Keymap](https://marketplace.visualstudio.com/items?itemName=tshino.vz-like-keymap) | [link](tshino.vz-like-keymap.json) | 2022-12-29 | `Ctrl+_` | `Ctrl+^` | `Ctrl+^` |
| [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings) | [link](ms-vscode.atom-keybindings.json) | 2023-01-08 | `Ctrl+Alt+R` | `Ctrl+Alt+R` | `Ctrl+Alt+P` |
| [Awesome Emacs Keymap](https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx) | [link](tuttieee.emacs-mcx.json) | 2023-01-08 | `C-x S-9` | `C-x S-0` | `C-x e` |
| [Delphi Keymap](https://marketplace.visualstudio.com/items?itemName=alefragnani.delphi-keybindings) | [link](alefragnani.delphi-keybindings.json) | 2023-01-08 | `Ctrl/Cmd+Shift+R` | `Ctrl/Cmd+Shift+R` | `Ctrl/Cmd+Shift+P` |
| [Notepad++ Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.notepadplusplus-keybindings) | [link](ms-vscode.notepadplusplus-keybindings.json) | 2023-01-08 | `Ctrl+Shift+R` | `Ctrl+Shift+R` | `Ctrl+Shift+P` |
| [Sublime Text Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.sublime-keybindings) | [link](ms-vscode.sublime-keybindings.json) | 2023-01-08 | `Ctrl/Cmd+Q` | `Ctrl/Cmd+Q` | `Ctrl/Cmd+Shift+Q` |
| [Visual Studio Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vs-keybindings) | [link](ms-vscode.vs-keybindings.json) | 2023-01-08 | `Ctrl+M R` | `Ctrl+M R` | `Ctrl+M Enter` |
| [Vz Keymap](https://marketplace.visualstudio.com/items?itemName=tshino.vz-like-keymap) | [link](tshino.vz-like-keymap.json) | 2023-01-08 | `Ctrl+_` | `Ctrl+^` | `Ctrl+^` |

- Each keyboard shortcut for start/stop recording and playback is assigned to the same ones that the original editor is using, as much as possible.
- You can find the definitions of them at the bottom of each keymap wrapper file (find the `startRecording` command etc.). You can customize them as you like.
Expand Down
148 changes: 74 additions & 74 deletions keymap-wrapper/alefragnani.delphi-keybindings.json

Large diffs are not rendered by default.

258 changes: 129 additions & 129 deletions keymap-wrapper/ms-vscode.atom-keybindings.json

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions keymap-wrapper/ms-vscode.notepadplusplus-keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,105 +4,105 @@
// The latest version can be found at:
// https://github.com/tshino/vscode-kb-macro/blob/main/keymap-wrapper/README.md
{ "key": "f11", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleFullScreen" },
"when": "kb-macro.recording && !inDebugMode" },
"when": "kb-macro.active && !inDebugMode" },
{ "key": "alt+0", "command": "kb-macro.wrap", "args": { "command": "editor.foldAll" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+1", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel1" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+2", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel2" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+3", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel3" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+4", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel4" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+5", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel5" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+6", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel6" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+7", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel7" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "alt+8", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel8" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+0", "command": "kb-macro.wrap", "args": { "command": "editor.unfoldAll" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "ctrl+h", "command": "kb-macro.wrap", "args": { "command": "editor.action.startFindReplaceAction" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "f4", "command": "kb-macro.wrap", "args": { "command": "editor.action.nextMatchFindAction" },
"when": "kb-macro.recording && editorFocus" },
"when": "kb-macro.active && editorFocus" },
{ "key": "shift+f4", "command": "kb-macro.wrap", "args": { "command": "editor.action.previousMatchFindAction" },
"when": "kb-macro.recording && editorFocus" },
"when": "kb-macro.active && editorFocus" },
{ "key": "ctrl+b", "command": "kb-macro.wrap", "args": { "command": "editor.action.jumpToBracket" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+delete", "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardCutAction", "await": "document selection clipboard" },
"when": "kb-macro.recording && !kb-macro.headOfLine && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && !kb-macro.headOfLine && editorTextFocus && !editorReadonly" },
{ "key": "shift+delete", "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardCutAction", "await": "document clipboard" },
"when": "kb-macro.recording && kb-macro.headOfLine && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && kb-macro.headOfLine && editorTextFocus && !editorReadonly" },
{ "key": "alt+backspace", "command": "kb-macro.wrap", "args": { "command": "undo" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+y", "command": "kb-macro.wrap", "args": { "command": "redo" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+d", "command": "kb-macro.wrap", "args": { "command": "editor.action.duplicateSelection" },
"when": "kb-macro.recording && editorFocus" },
"when": "kb-macro.active && editorFocus" },
{ "key": "ctrl+j", "command": "kb-macro.wrap", "args": { "command": "editor.action.joinLines" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+q", "command": "kb-macro.wrap", "args": { "command": "editor.action.commentLine" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+q", "command": "kb-macro.wrap", "args": { "command": "editor.action.blockComment" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+s", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.saveAll" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+k", "command": "kb-macro.wrap", "args": { "command": "editor.action.addCommentLine" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+k", "command": "kb-macro.wrap", "args": { "command": "editor.action.removeCommentLine" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+backspace", "command": "kb-macro.wrap", "args": { "command": "deleteAllLeft" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+alt+s", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.saveAs" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "alt+f4", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quit" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+w", "command": "kb-macro.wrap", "args": { "command": "workbench.action.closeActiveEditor" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "shift+cmd+delete", "command": "kb-macro.wrap", "args": { "command": "deleteAllRight" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+u", "command": "kb-macro.wrap", "args": { "command": "editor.action.transformToLowercase" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+shift+u", "command": "kb-macro.wrap", "args": { "command": "editor.action.transformToUppercase" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+b", "command": "kb-macro.wrap", "args": { "command": "editor.action.jumpToBracket" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+down", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectDown" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+left", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectLeft" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+pagedown", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectPageDown" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+pageup", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectPageUp" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+right", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectRight" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "shift+alt+up", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectUp" },
"when": "kb-macro.recording && editorTextFocus" },
"when": "kb-macro.active && editorTextFocus" },
{ "key": "ctrl+pageup", "command": "kb-macro.wrap", "args": { "command": "workbench.action.nextEditor" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+pagedown", "command": "kb-macro.wrap", "args": { "command": "workbench.action.previousEditor" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+insert", "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardCopyAction", "await": "clipboard" },
"when": "kb-macro.recording && isWindows && editorTextFocus" },
"when": "kb-macro.active && isWindows && editorTextFocus" },
{ "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardCopyAction", "await": "clipboard" },
"when": "kb-macro.recording && !isWindows && editorTextFocus" },
"when": "kb-macro.active && !isWindows && editorTextFocus" },
{ "key": "shift+insert", "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardPasteAction", "await": "document selection" },
"when": "kb-macro.recording && isWindows && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && isWindows && editorTextFocus && !editorReadonly" },
{ "command": "kb-macro.wrap", "args": { "command": "editor.action.clipboardPasteAction", "await": "document selection" },
"when": "kb-macro.recording && !isWindows && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && !isWindows && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+down", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesDownAction" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+up", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesUpAction" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+l", "command": "kb-macro.wrap", "args": { "command": "editor.action.deleteLines" },
"when": "kb-macro.recording && editorTextFocus && !editorReadonly" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "alt+c", "command": "kb-macro.wrap", "args": { "command": "columnSelect" },
"when": "kb-macro.recording" },
"when": "kb-macro.active" },
{ "key": "ctrl+shift+r", "command": "kb-macro.startRecording",
"when": "!kb-macro.recording" },
{ "key": "ctrl+shift+p", "command": "kb-macro.cancelRecording",
Expand Down
Loading

0 comments on commit c04d267

Please sign in to comment.