Sublime Forum

Completely independent sessions

#1

Hi!

I love sublime, so much that I use it for everything!

That is the problem. I have a lot of projects, and I often want to open more than 1 at the same time.

This is the setup I’m trying to create:

  • Separate shortcuts to open each project:

  • I would like each project to start its own sublime instance

  • I would like to load the last state when I open the sublime instance

  • I would like to save the current state when I close the sublime instance

This is what I have tried:

"C:\...\sublime_text.exe" -a --multiinstance --project "C:\...\cobalt.sublime-project"

This does indeed create a separate instance for each project.


And it works pretty good as long as these settings are set:

"hot_exit": false,
"remember_open_files": false,

However, I really like those settings. It is really nice to be able to close the project, reopen it and continue where you left off without any hassle.

I tried experimenting with the Session Manager plugin, but It didn’t seem to solve this problem in a simple way.

I don’t know how to solve this, but as far as i understood it, the majority of the session data is located in the file

Session.sublime_session

Would it be possible to add a command-line option to specify your own custom session file?

--session cobalt

Would it help?

If this is not where the hot_exit and remember_open_files states are saved, where are they saved?

Are there any other ways to do this?

Am I missing something obvious?

/Daniel

1 Like