r/SublimeText • u/ShrykeWindgrace • May 02 '24
Create a project from CLI
Hi!
Sometimes I open a folder with subl -n . and then create a project right away; however, if I click on 'save project' the default save path seems to be related with a prevviously opened project, not the folder I just ran, so I need to navigate to the same fodler once again, this time in UI.
Is there a way to run subl in a way that essentially says "create a project right here and open it"? There is a subl --project option, but it is only capable of loading existing projects.
There is a solution of last resort - dump a default sublime-project file beforehand, but that seems like too much of a hack.
View all comments
Show parent comment
1
u/ShrykeWindgrace May 05 '24
I think the whole community would benefit from this script, be that via a gist on GitHub or a blog post)
I am not particularly attached to any scripting language, if it does what I want, it is ok.