Sublime Forum

Key binding to execute multiple commands. Possible?

#1

I’m currently trying to modify my key bindings for the oragami package.
Here is one of the current mappings.

{ "keys": ",", "v"], "command": "create_pane", "args": {"direction": "right"} }

What I would like, is that for every time I issue this command, it focus on the created window by using the oragami command found in this mapping.

{ "keys": "ctrl+l"], "command": "travel_to_pane", "args": {"direction": "right"} }

Is there way to trigger a secondary command based on the first one?

Thanks!

0 Likes

#2

Someone was working on a plugin to do this a while ago. I haven’t tested it, but here is the thread.

0 Likes

#3

[quote=“skuroda”]Someone was working on a plugin to do this a while ago. I haven’t tested it, but here is the thread.

https://forum.sublimetext.com/t/run-multiple-commands-command/6848/1[/quote]

Works like a charm!

0 Likes