Sublime Forum

Build 4180, Linux: Closing a project leaves an empty window

#1

After the most recent update closing a project (either via the menu or via a keyboard short-cut) produces an empty ST window. This happens regardless of the presence of other opened ST windows.

Please let me know if this happens to everyone (again, Linux).

0 Likes

#2

Main Menu > Projects > Close Project doesn’t close a window on all ST builds on Windows 10/11 as closing the last file doesn’t by default.

0 Likes

#3

For me the behaviour changed with the last update, almost certainly (there is a small chance of some funny coincidence). Playing with “close_windows_when_empty” has no effect on this, by the way.

0 Likes

#4

Well, closing a window also closes its project.

It therefore makes sense (to me) to have a command to close a project without closing its window.

Maybe this change in behavior is related with a fix for not closing windows accidentelly when switching between projects.

0 Likes

#5

To me the current behaviour is counter-intuitive: having several windows corresponding 1-to-1 to several projects, closing a project creates a new empty window. But that is, obviously, a matter of taste.

All I want to know is whether others are experiencing the same new behaviour, and if they do, then whether there is a natural way (not involving, say, API listeners) to return to the old one.

Thank you.

0 Likes

#6

For what it’s worth, I’ve been using Sublime since 2016, primarily on Linux, and using Project: Close from the command palette or the associated menu item has never closed the window; it just removes the project from the window and leaves it empty.

If you want to close a project and also close the window with it, as mentioned above you can just close the window instead.

0 Likes

#7

All right, then I had the “wrong behaviour” till this update. I’d prefer to get it back though: as I said, starting with 5 open windows/projects and closing one project, I would rather stay with 4 windows/projects than with 4 w/p + an empty window.

Closing a window right away is, certainly, a possibility, but it will also close a non-project window (say, if I close it by mistake). Not a big deal, but I got used to “close project” (and even assigned a dedicated short-cut to that) precisely in oder to avoid such situations.

Thank you both for the clarification!!

I do not “close” the thread though: if anyone experienced the said change of behaviour after the last update and knows how to get back the old behaviour, do let me know, please.

0 Likes

#8

Hi. You can probably create a simple command for it that will close both

1 Like

#9

Hi! Thank you, that’s what I though too; more precisely: checking whether this is a project and closing the window if it is one (maybe even displaying a pop-up with a question otherwise).

1 Like