Sublime Forum

Event on ST startup

#1

Hi everyone,

Just joined the forum. I am in a team working on a collaborative editing plugin for ST2, that will work as a cloud solution. Much like google docs, but in ST and with nothing persisted in the cloud.

Question:
Is there a way that I can receive an event, or run a command, when ST2 has just been launched?

Thanks
Anders

0 Likes

#2

How about when your plugin is loaded?

0 Likes

#3

That sounds right, but I can not see a method for that in the api…?

0 Likes

#4

plugin_loaded

sublimetext.com/docs/3/api_reference.html

0 Likes

#5

Thanks, but it is for sublime text 2 where plugin_loaded() does not seem to be supported.

0 Likes

#6

You can also just run code in your plugin… it’ll get executed when Sublime loads the plugin.

0 Likes

#7

Thanks. That was what I ended up doing, and it works at desired.

Cheers

0 Likes