jps wrote:I can see a few options for how it could work, none of which would result is the user losing any work:
#1: Changing sessions is like changing profiles: sessions contain the complete state of the editor (open files and their modifications, as well as open windows and their positions), and changing session will close all open files and switch entirely to the new one. This would work behind the scenes just like 'File/Exit and preserve session': state, such as unsaved changes to open files, would be saved in the session.
#2: Sessions apply to a window at a time only. Opening a new session will open a new window with that session. It allows multiple sessions to be open at the same time, but perhaps doesn't make sense if you want one session to span multiple windows.
#3: Making sessions a bit 'softer': Opening a session closes all opened but un-modified files, while leaving modified files alone. Files that were open in the session are then opened. Window state, layout, find history etc aren't touched.
I think #3 is my favourite, but I'm not sure that any of the above are really satisfying.
I like #1, just like we have right now "exit and preserve session", so +1 for #1!
This little feature has saved me a couple times already, I love the fact it saves unsaved files!
Sometimes I am recompiling information or just doing budgeting or quick notes whatever, I am glad sublime saves unsaved buffers which are (unexpected) shutdown/reboot friendly
I feel safe using sublime text, I know my stuff is always going to be there! lol