Sublime Forum

How to call default command

#1

i would like to add and run a few commands after a default key binded command is executed, for example, the ‘undo’ command plus some of my command in a single key, how do you do that and how do you run multiple commands in one key , thanks

0 Likes

#2

Hello,

Have you tried to record a macro? Use “Tools -> Record Marcro”, stop recording with the same menu, save the same macro. You may manually edit the macro’s file, at /…/Packages/User/Something.sublime-macro. You can assign a macro, a keystroke. See docs.sublimetext.info/en/latest/ … for-macros

0 Likes

#3

Note that not all commands are available for macros. “undo” might be one of these.

0 Likes