Skip to content

Commit

Permalink
Merge pull request #211 from tshino/update-vz-keymap
Browse files Browse the repository at this point in the history
Updated keymap wrapper for Vz Keymap (v0.19.5)
  • Loading branch information
tshino authored Feb 19, 2023
2 parents d8fd16f + 1b8c73b commit b0b8746
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the Keyboard Macro Bata extension will be documented in t
### [Unreleased]
- Update
- Updated keymap wrapper for Delphi Keymap (v9.7.1). [#210](https://github.com/tshino/vscode-kb-macro/pull/210)
- Updated keymap wrapper for Vz Keymap (v0.19.5). [#211](https://github.com/tshino/vscode-kb-macro/pull/211)
- Internal
- Updated automated workflow to ignore meaningless rows in the default keybindings JSON. [#206](https://github.com/tshino/vscode-kb-macro/issues/206)

Expand Down
4 changes: 2 additions & 2 deletions keymap-wrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Click the keymap wrapper link in the table below, which opens a JSON file. Copy
| ---------------- | -------------- | ------------ | ---------- | --------- | -------- |
| [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings) | [link](ms-vscode.atom-keybindings.json) | 2023-01-24 | `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` |
| [Delphi Keymap](https://marketplace.visualstudio.com/items?itemName=alefragnani.delphi-keybindings) | [link](alefragnani.delphi-keybindings.json) | 2023-02-19 | `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+^` |
| [Vz Keymap](https://marketplace.visualstudio.com/items?itemName=tshino.vz-like-keymap) | [link](tshino.vz-like-keymap.json) | 2023-02-19 | `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
3 changes: 2 additions & 1 deletion keymap-wrapper/tshino.vz-like-keymap.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
[ "vz.deleteRight", "document [editorHasSelection]selection" ],
[ "vz.deleteWordRight", "document [editorHasSelection]selection" ],
[ "vz.deleteAllRight", "document [editorHasSelection]selection" ],
[ "vz.insert*", "document selection" ],
[ "vz.insertLineBefore", "document [!kb-macro.headOfLine]selection" ],
[ "vz.insertPath", "document selection" ],
[ "vz.copyLines*", "document selection" ],
[ "vz.transformCase", "document" ],
[ "vz.undelete", "document selection" ],
Expand Down
6 changes: 4 additions & 2 deletions keymap-wrapper/tshino.vz-like-keymap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
// Keymap wrapper for Vz Keymap v0.19.4
// Keymap wrapper for Vz Keymap v0.19.5
// (required by Keyboard Macro Beta)
// The latest version can be found at:
// https://github.com/tshino/vscode-kb-macro/blob/main/keymap-wrapper/README.md
Expand Down Expand Up @@ -196,7 +196,9 @@
{ "key": "ctrl+n", "command": "",
"when": "kb-macro.active && editorFocus && config.vzKeymap.ctrl+N" },
{ "key": "ctrl+n", "command": "kb-macro.wrap", "args": { "command": "vz.insertLineBefore", "await": "document selection" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly && config.vzKeymap.ctrl+N" },
"when": "kb-macro.active && !kb-macro.headOfLine && editorTextFocus && !editorReadonly && config.vzKeymap.ctrl+N" },
{ "key": "ctrl+n", "command": "kb-macro.wrap", "args": { "command": "vz.insertLineBefore", "await": "document" },
"when": "kb-macro.active && kb-macro.headOfLine && editorTextFocus && !editorReadonly && config.vzKeymap.ctrl+N" },
{ "key": "ctrl+k ctrl+d", "command": "kb-macro.wrap", "args": { "command": "vz.copyLinesDown", "await": "document selection" },
"when": "kb-macro.active && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+k d", "command": "kb-macro.wrap", "args": { "command": "vz.copyLinesDown", "await": "document selection" },
Expand Down

0 comments on commit b0b8746

Please sign in to comment.