Sublime Forum

[solved] macOS 13.1 - Stuff lost at exit

#1

I’ve been using Sublime Text as my main text editor since forever but always on Windows. Recently I got myself a new MacBook with MacOs Ventura I find the behaviour of Sublime Text 4 to be somewhat weird.

The thing that happens is that projects folders and open files are lost between sessions. On my windows computers Sublime Text always keeps track of the files and I never have to be afraid that thing that I have edited aren’t saved but on MacOs it feels a bit random.

Been checking and double checking the usual suspects in the settings like

"hot_exit": "always",
"hot_exit_projects": "always",
"remember_workspace": true,
"remember_layout": true

and also made sure that Sublime Text has “Full Disk Access” but other than that I’m to new on macOS to know what to try next.

Anyone have any guess what I am missing?

Sincerely
l4rs3rik

0 Likes

#2

I don’t use Hot-Exit personally, so I’m not sure how much attention ST pays to these System Settings, but worth checking:

When you say you’re exiting ST, do you mean actually quitting the application (Sublime Text > Quit Sublime Text in the menu bar, or the Cmd-Q keyboard shortcut), or just closing the last window?

If you are new to MacOS, then this might be something you need to learn about (Closing the last window of an application is the not the same thing as quitting the application. Since an application is embodied by its separate Menu Bar at the top of the screen, it continues running even when it currently has 0 windows).


The first thing I’d recommend to try is to have all settings at their defaults, and to just quit ST by doing nothing other than pressing Cmd-Q (i.e. don’t manually close any windows first). Then relaunch ST and see whether stuff gets restored as you desire. It may be as simple as that.

2 Likes

#3

The “Ask to keep changes when closing documents” was not enabled so I changed that. Might be part of the confusion I’m having, thanks for the tip.

I’ll make sure my ST settings are the default ones and test out some scenarios.Should be able to pinpoint the behaviour in a more details. (I’ll report back when I know/understand what’s really happening.)

0 Likes

#4

I now understand what I’ve been doing wrong.

  1. I had the “Ask to keep changes when closing documents” disabled
  2. I have been mistaken the red dot (see image) to be “close application” when in fact it’s close window (cmd+w)

Thanks again to @frou for helping out.

Sincerely
l4rs3rik

1 Like