Sublime Forum

Windows Close vs MacOSX close - different actions

#1

Hello. I have a GREAT problem.

I’ve been using Sublime for a long time, and I’ve noticed that when I click “X” to close editor on Windows - it doesn’t ask to save files etc, it just closes and when I open it, it opens with all the files I had before closing it with “X”.

On Mac if I close the editor with red button on right side (same as X on Windows) - it asks me where to save the files. If I don’t save them and open the editor again, I’m presented with blank page.
On the other way, if I close the editor using CMD+Q - it acts like on Windows - closes without asking and when reopening all tabs are there,

My question is: HOW TO CHANGE BEHAVIOR SO WHEN I CLOSE SUBLIME WITH RED DOT ON MAC IT ACTS LIKE CMD+Q (OR LIKE CLOSING WITH “X” ON WINDOWS)? Please help, this is driving me crazy.

Regards,
Lukas

0 Likes

#2

Closing a window on mac is not the same as quitting the application. On Mac each app can have multiple main windows and closing them won’t actually quit the app.

The sublime preference file explains how the “hot exit” feature works.

    // 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,
1 Like