zed icon indicating copy to clipboard operation
zed copied to clipboard

Close main window with CMD+W

Open krstp opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

After closing all the TAB there is no option to close open empty window. Good example is when I have multiple windows open with multiple tabs. Sometimes I just want to close one of those... so I hit CMD+W to close the tabs, but when no tabs are open this particular window would still stay open. It would be also nice if there was a prompt at the end asking user if user really wants to close the main window.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

krstp avatar Apr 05 '23 22:04 krstp

Hmm when I read this title, I thought you meant for Zed to allow us to close empty window with cmd-W instead of cmd-shift-W, which is how VS Code does it as well. I'd love this. image image

But after reading the description it's pretty different from I imagined. Now I'm not sure if I should open a new issue for what I described above… 🤔

wzxu avatar Apr 11 '23 14:04 wzxu

Yes, CMD+W; this is what I had in mind. One the other hand I wasn't aware of CMD+SHIFT+W. So... Well... we can provide Keybinding overwrite if possible. Otherwise I am good with CMD+SHIFT+W.

krstp avatar Apr 11 '23 15:04 krstp

On my end VSCode also closes the window with CMD+W if there are no tabs left. This is how any MacOS app behaves as far as I know. Would be great if Zed also did it :)

porsager avatar Sep 27 '23 05:09 porsager

Yes, please. Command+W should close any open window if no tabs are open. In fact…

I would love if Zed closed the last remaining window automatically if there’s only one tab open across the app. I frequently just work with one file at a time and having window remain open (with the last closed tab’s title still remaining in the window title area) is disconcerting to me.

UPDATE: Link to a similar request -> https://github.com/zed-industries/zed/issues/5322

fuzenco avatar Dec 14 '23 17:12 fuzenco

Agree with this request

julien-c avatar Jan 26 '24 18:01 julien-c

upvoting!

(see my duplicate issue, now closed https://github.com/zed-industries/zed/issues/7200 )

danielweck avatar Feb 02 '24 05:02 danielweck

@JosephTLyons FYI there is a 2 years old issue with more votes / thumbs up than this one, which I think is a duplicate:

https://github.com/zed-industries/zed/issues/5322

danielweck avatar Feb 02 '24 05:02 danielweck

@JosephTLyons FYI there is a 2 years old issue with more votes / thumbs up than this one, which I think is a duplicate:

https://github.com/zed-industries/zed/issues/5322

Ah yeah! You're right. When searching for the original, I swore there were more upvotes. Ok, let's close this one as well. If you've voted on this issue, please upvote on the original.

Side note, wish there was a better way, where upvotes could be merged.

JosephTLyons avatar Feb 02 '24 06:02 JosephTLyons