Skip to content

Commit

Permalink
Add emacs-style prefix arguments support
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Dec 30, 2021
1 parent 8cc67f5 commit c10a4e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion keymap-wrapper/tuttieee.emacs-mcx.config.json
Original file line number Diff line number Diff line change
@@ -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" ],
Expand Down Expand Up @@ -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"
}
]
}
6 changes: 4 additions & 2 deletions keymap-wrapper/tuttieee.emacs-mcx.json
Original file line number Diff line number Diff line change
@@ -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" },
Expand Down Expand Up @@ -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" }
]

0 comments on commit c10a4e5

Please sign in to comment.