Sublime Forum

EventListener on_load behavior

#1

I have an EventListener setup with an on_load method. If I open a file by clicking in the file browser the view parameter has a value returned from window() but if I open a file using the quick find panel (not sure what it’s called) window() return nil.

How can I get the window in the second case? I need to get project name associated with the window but I’m not sure how to get the reference to the window.

0 Likes