Sublime Forum

Is there any way to call a plugin except for key mapping or menu item?

#1

I wrote a plugin that I can call by mapping it to a key as shown below. Is there any other way to call this plugin like through the command palette or console?

{ “keys”: [“ctrl+3”], “command”: “insert_mystring” },

0 Likes

#2

Console: view.run_command("insert_mystring")
Palette: http://docs.sublimetext.info/en/latest/reference/command_palette.html

1 Like

#3

Thank you!

0 Likes