Sublime Forum

Running multiple commands from a keybinding

#1

I’m wondering if it’s possible to specify a sequence of commands to run when a key is pressed.
I’m thinking something like this:

	{ "keys": ";"], "commands":  
			{"command": "move_to", "args": {"to": "eol", "extend": false}},
			{"command": "insert", "args": {"characters": ";"}}
	] }
0 Likes

#2

You could make a macro with these two commands. Then just set a keybinding up for the macro.

0 Likes

#3

Cool, thank! I didn’t even think of using macros.

0 Likes