Search code examples
sublimetextsublime-text-plugin

Hooking into "Sublime Text has finished loading" event


Is there an API call to determine if Sublime Text has finished loading, including reopening all files that were open before Sublime was closed last? Maybe there is something similar to plugin_loaded(), which gets called after the plugin has finished loading?

If this is not possible, are the files that were open last listed somewhere?


Solution

  • I am not sure if there is such API. However, you can get all stored buffers in file Sublime Text 2\Settings\Session.sublime_session (search "buffers" in it).