How do I create a key binding shortcut to run a custom package / plugin in sublime text
sublimetext, sublimetext2, sublimetext3
Solution
In the ST console, enter `sublime.log_commands(True)` to see what command is being executed form the command palette. Alternatively you can look in the `Default.sublime-menu` file for the appropriate caption/command pair. After you've done that, you can create a custom key binding. To do this, open your user key binding file by going to `Preferences -> Key Binding - User`. Enter something like the following.
[
{"keys": ["ctrl+shift+p"], "command": "<preview_command_here>"}
]
The settings file is just a list, so if you already have an entry, you do not need the square brackets.
Problem
I have Markdown preview package installed in my sublime text and I want to create a shortcut / key binding for it, let's say: `ctrl + shift + p `