I have the following, which feels a bit dirty and causes a visual hiccup between the time of Sublime starting and the timeout firing:
- Code: Select all
def plugin_loaded():
sublime.set_timeout(force_active)
def force_active():
view_id = sublime_api.window_active_view(sublime_api.active_window())
sublime_plugin.on_activated(view_id)