I’m trying to write a script to install and document my Sublime Text installation. I’ve been trying to figure out how to use package control from the command line without much luck - I’m hoping someone can point me in the right direction.
The following brings up the install_package dialogue box in the editor when run:
./sublime_text --command install_package
However I’ve been unable to insert text into the dialogue box once it’s on the screen, I’ve tried both macros and chaining commands but haven’t had much luck.
macro:
{"command": "install_package"},
{"command": "insert", "args": {"characters": "test\n"}}
]
An alternative would be to drive the Package Control classes directly, but I’ve so far been unable to import the classes in the ‘Ctrl+`’ console window.
So, is it possible to either insert text into the install_package quick panel or import the Package Control classes directly? Is there another approach I should look into?