SublimeText 2 - Save / Restore Session

I am new to using sublime text and find it great. I use Sublime in Ubuntu 12.04 and some features are missing.

In SublimeText, if I open a window and close it through the menu, the next time I open SublimText, a window with open documents will open. Great, but not very useful, because I work with many projects at the same time. Currently, I open them all in many windows, but it hurts for that.

I would like to save session information based on each / prject folder. So when I open Sublime through the terminal, the session will be available

for example

$ cd /path/to/project $ sublime-text . # if a session is saved (project opened before), opens the Sublime with the last saved session for the folder/project 

It will be great to know if this is possible. After several days of searching, I got tired of it.

+7
source share
1 answer

You can open the project from the command line by passing the .sublime-project file as an argument. Within your project, you can put user preferences, for example, "remember_open_files": true , but set it to false in the file Packages/User/Preferences.sublime-settings .

+8
source

All Articles