Is it possible to change these setting from command line rather than editing the setting permanently in sublime?

For when I have 2 or 3 projects in sublime but want a new folder to open in sublime without those previous projects and don't want the new project to overwrite sublime_session when I close the window. That way when I open sublimetext normally it will still have those 2 or 3 other projects?

It seems simple from the command line perspective. Just a option to ignore last session and don't write session. But I don't know how difficult it would be to implement in sublime if it doesn't already exist.

It really seems to be a tiny change — only add a command switch to 'subl' to ignore last session.

+1

Such an option would make Sublime far more useful at the command-line for one-off file editing. Currently it's a workflow PITA:

Eg,

I have Sublime set as my editor for git. Every time I "git commit -a", Sublime opens with a bunch of tabs (and possibly windows).

Now,Say I write my commit and then close with alt+f4, Git won't commit because I have another sublime window open and it's waiting for the process to quit, plus I've now broken my window collection from my last development session.

So I have to write my commit, then carefully save it, close the tab and then exit Sublime with File..Exit to keep my windows/projects as they were before. What a faff!

I've tried all kinds of workarounds for this, like loading a blank project with the cmdline etc., but none of them play nice. Blank projects have the annoying bug of launching a separate window, and randomly focusing it instead of the window with the file launched from the cmdline.

What we want here is a simple launch option that disables hot_exit, doesn't load any session/projects, and launches sublime in its own process for one-off editing. This would be dead handy for command line editing, but also for other purposes too, like making sublime the editor launched by other apps.

Sublime is beautiful, but it's doesn't play nice for people wanting to launch from the command line for one-off editing. As a result, I usually fall back to vim or whatever for those jobs.

+1 for me. I'm really confused how there are so many bugs surrounding projects and build systems. (I open a project file with subl Project.sublime-project and instead of opening that project it simply opens it in the currently open or last open project. Prime wtf.) Or, maybe it's just a misunderstanding but if that's the case where's the documentation?