Sublime Forum

Not Rembember Windows at Startup

#1

Hi folks

I’ve setup an alias to launch Sublime Text from Bash as documented. Now “subl .” does correctly open the editor with all the files from the current dir in the sidebar, but it also opens the window from the last session. Is there a way to prevent that and either never remember windows? (The -n switch doesn’t help here.)

Cheers, -sven

0 Likes

#2

In the default preferences file, there’s this bit of code:

[code]
//
// Application Behavior Settings
//

// Exiting the application with hot_exit enabled will cause it to close
// immediately without prompting. Unsaved modifications and open files will
// be preserved and restored when next starting.
//
// Closing a window with an associated project will also close the window
// without prompting, preserving unsaved changes in the workspace file
// alongside the project.
"hot_exit": true,

// remember_open_files makes the application start up with the last set of
// open files. Changing this to false will have no effect if hot_exit is
// true
"remember_open_files": true,[/code]

If you set both of those to false in your user settings, I think that’ll do what you’re wanting, though I haven’t tested it.

0 Likes

#3

Works like a charm, thanks a lot!

0 Likes