-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended version of executeCommand() with prefixArgument #1146
Comments
@tshino Hi, I created a prototype of the command {
"key": "ctrl+x e",
"command": "emacs-mcx.executeCommandWithPrefixArgument",
"args": {
"command": "kb-macro.playback",
"prefixArgumentKey": "repeat"
}
}
Does it satisfy your needs? Can you give some comments, suggestions, or any ideas on it? |
@whitphx Thank you so much. The API design looks perfect for my use case! But I found one problem with the implementation at 0d4db90.
And triggered playback of the sequence by
I think the prefix argument was applied twice. |
@tshino Thank you, good catch! |
@whitphx It works perfectly for me! After this new command has been shipped successfully with your extension, I will update the keymap wrapper file on my extension to enable prefix-argument support. Thanks a lot! |
@tshino Thank you for the trial. I'm glad to hear it works good.
It makes sense 👌
|
Ref: #1127 (comment)
To call arbitrary commands with prefix argument, this extension should provide its own
executeCommand()
.The command name is like
emacs-mcx.executeCommandWithPrefixArgument()
?API design plan:
will call
<commandName>
command with arguments{ ...args, prefixArgument }
.The key name
prefixArgument
can be customizable with the third argument ofemacs-mcx.executeCommand()
The text was updated successfully, but these errors were encountered: