From 208ab82737cd56a1b9bbae45603ca834d3a40ca5 Mon Sep 17 00:00:00 2001 From: tshino Date: Sun, 19 Feb 2023 18:52:57 +0900 Subject: [PATCH 1/2] Updated keymap wrapper for Vz Keymap (v0.19.5) --- keymap-wrapper/tshino.vz-like-keymap.config.json | 3 ++- keymap-wrapper/tshino.vz-like-keymap.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/keymap-wrapper/tshino.vz-like-keymap.config.json b/keymap-wrapper/tshino.vz-like-keymap.config.json index 696160f3..96a3c577 100644 --- a/keymap-wrapper/tshino.vz-like-keymap.config.json +++ b/keymap-wrapper/tshino.vz-like-keymap.config.json @@ -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" ], diff --git a/keymap-wrapper/tshino.vz-like-keymap.json b/keymap-wrapper/tshino.vz-like-keymap.json index 1c70baa3..6a38ae9c 100644 --- a/keymap-wrapper/tshino.vz-like-keymap.json +++ b/keymap-wrapper/tshino.vz-like-keymap.json @@ -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 @@ -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" }, From 1b8c73b72f3eba2a69dc60ec76621f026449d42d Mon Sep 17 00:00:00 2001 From: tshino Date: Sun, 19 Feb 2023 18:56:30 +0900 Subject: [PATCH 2/2] Update CHANGELOG, README --- CHANGELOG.md | 1 + keymap-wrapper/README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f59e4725..d9158163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/keymap-wrapper/README.md b/keymap-wrapper/README.md index ff231137..97c57624 100644 --- a/keymap-wrapper/README.md +++ b/keymap-wrapper/README.md @@ -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.