def onload(self): self.attach_window(sublime_api.active_window())
def active_window(): return Window(sublime_api.active_window())
def force_active(): view_id = sublime_api.window_active_view(sublime_api.active_window()) sublime_plugin.on_load(view_id)
def force_active(): import sublime_api view_id = sublime_api.window_active_view(sublime_api.active_window()) sublime_plugin.on_activated(view_id)
def active_window(): return Window(sublime_api.active_window()) def windows(): return [Window(id) for id in sublime_api.windows()]