From c10a4e5229bedad578a181def763011467c2b590 Mon Sep 17 00:00:00 2001 From: tshino Date: Thu, 30 Dec 2021 22:03:57 +0900 Subject: [PATCH] Add emacs-style prefix arguments support --- keymap-wrapper/tuttieee.emacs-mcx.config.json | 11 ++++++++++- keymap-wrapper/tuttieee.emacs-mcx.json | 6 ++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/keymap-wrapper/tuttieee.emacs-mcx.config.json b/keymap-wrapper/tuttieee.emacs-mcx.config.json index b59d7ec..095f4a0 100644 --- a/keymap-wrapper/tuttieee.emacs-mcx.config.json +++ b/keymap-wrapper/tuttieee.emacs-mcx.config.json @@ -1,7 +1,7 @@ { "base": { "type": "url", - "url": "https://github.com/whitphx/vscode-emacs-mcx/raw/v0.36.6/package.json" + "url": "https://github.com/whitphx/vscode-emacs-mcx/raw/v0.37.0/package.json" }, "awaitOptions": [ [ "emacs-mcx.forwardChar", "selection" ], @@ -68,6 +68,15 @@ "key": "ctrl+x e", "command": "kb-macro.playback", "when": "!kb-macro.recording" + }, + { + "key": "ctrl+x e", + "command": "emacs-mcx.executeCommandWithPrefixArgument", + "args": { + "command": "kb-macro.playback", + "prefixArgumentKey": "repeat" + }, + "when": "!kb-macro.recording && emacs-mcx.prefixArgumentExists" } ] } \ No newline at end of file diff --git a/keymap-wrapper/tuttieee.emacs-mcx.json b/keymap-wrapper/tuttieee.emacs-mcx.json index c54d6a8..8678506 100644 --- a/keymap-wrapper/tuttieee.emacs-mcx.json +++ b/keymap-wrapper/tuttieee.emacs-mcx.json @@ -1,5 +1,5 @@ [ - // Keymap wrapper for Awesome Emacs Keymap v0.36.6 + // Keymap wrapper for Awesome Emacs Keymap v0.37.0 // (required by Keyboard Macro Beta) { "key": "ctrl+u", "command": "kb-macro.wrap", "args": { "command": "emacs-mcx.universalArgument" }, "when": "kb-macro.recording && editorTextFocus" }, @@ -1218,5 +1218,7 @@ { "key": "ctrl+x shift+0", "command": "kb-macro.finishRecording", "when": "kb-macro.recording" }, { "key": "ctrl+x e", "command": "kb-macro.playback", - "when": "!kb-macro.recording" } + "when": "!kb-macro.recording" }, + { "key": "ctrl+x e", "command": "emacs-mcx.executeCommandWithPrefixArgument", "args": { "command": "kb-macro.playback", "prefixArgumentKey": "repeat" }, + "when": "!kb-macro.recording && emacs-mcx.prefixArgumentExists" } ]