Sublime Forum

Project Open/Add folder events

#1

Hello,

After doing a bit of searching, it does not appear that there is any explicit way for a plugin to get notified when a project
gets opened and/or when a folder is added to a project. In the plugin I’m building, I’m trying to modify some settings based
on a file in the open directories.

I’m currently using the on_activated event as it seems to get fired often (every time a view is focused) but it definitely doesn’t cover all cases.

Does anyone have any ideas of workarounds for these events?

Thanks!

0 Likes