Sublime Forum

Run a command when a window opens

#1

Is it possible to run a window command when a window opens? I’ve tried using sublime_plugin.EventListener.on_window_command, but it doens’t seem to work. I’ve also tried running the command in the window command’s init method without luck. Thanks in advance.

0 Likes

#2

As far as I know, there is no way to run a command based on when a project loads (which is essentially what a window is).

0 Likes