I'm developing plugin which will synchronize Sublime Text configuration.
The plugin core is node.js utility, which is doing all the stuff.
The next step I see is to create python wrapper for plugin which will interact with Sublime Text API and will run nodejs scipt every time text editor is opening.
And the main problem is that I don't know python.
I have researched that I need to execute this custom python code:
from subprocess import call
call(["node", "app.js", "../User/"], Shell=true)
Then I researched API and I thought that I need EventListener class, but there are no events like onEditorStart. Then I found two run_command(string, <args>), but I have any thoughts how to use it in my purposes.
Then I have explored Packages/Default/ with samples of code, which are using a lot of API functions, but still I have no idea how find usefull lines in that 101 files.
I am almost in despair, and decided to ask here. What should I code in python to force my plugin run nodejs scipt every time text editor is opening?