A simple python script that enable users to easily execute multiple commands in Sublime Text 3. The original author is Nilium, who shared the original python code here.
I made a very tiny change to the code so that it can work with packages like sublime-evernote.
Download and put run_multiple_commands.py in your /Packages/User/
directory.
You can find the directory through Preferences -> Browse Packages
in Sublime Text. Or depending on your OS, you can allocated it at:
OSX
~Library/Application Support/Sublime Text 3/Packages
Windows
C:\Users\epti-215\AppData\Roaming\Sublime Text 3\Packages
Linux
~/.config/sublime-text-3/Packages/
Open your sublime-keymap
file from Preferences -> Key Bindings
in Sublime Text. Add multiple commands like the following examples.
In this example, when the user click "super+s", command save and command save_evernote_note will be executed.
{
"keys": [
"super+s"
],
"command": "run_multiple_commands",
"args": {
"commands": [
{
"command": "save"
},
{
"command": "save_evernote_note",
"context": [
{
"key": "evernote_note"
}
]
}
]
}
}
This is the example provided by Nilium.
{
"keys": [
"ctrl+w"
],
"command": "run_multiple_commands",
"args": {
"commands": [
{
"command": "find_under_expand",
"context": "window"
},
{
"command": "show_panel",
"args": {
"panel": "find"
},
"context": "window"
}
]
}
}
For Sublime Text Multi Commands, credit gose to its original author, Nilium. For Sublime Evernote, credit goes to its contributors.