zed
zed copied to clipboard
Changed cmd+w with no open tabs to close window
Fixes https://github.com/zed-industries/zed/issues/5322
Release Notes:
- Changed cmd+w with no open tabs to close window #5322
https://github.com/zed-industries/zed/assets/22855292/113b1635-ae30-4718-a3d3-758a4bf53714
We require contributors to sign our Contributor License Agreement, and we don't have @williamviktorsson on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.
@cla-bot check
We require contributors to sign our Contributor License Agreement, and we don't have @williamviktorsson on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.
The cla-bot has been summoned, and re-checked this pull request!
The cla-bot has been summoned, and re-checked this pull request!
Two thoughts:
-
While this fixes the issue, and is similar to default behaviour of other apps, one might want to be able to configure the behaviour.
-
I noticed that if you cmd+w with focus on terminals, it closes terminals first, then editor windows, then application window. However, if you focus editor windows and start cmd+w, it will close the editors then the application window, and focus does not go to terminals first. This is consistent with how VSCode does it, just thought I'd mention it cause I was expecting terminals to count as active windows.
I really would also like to know how if it would be possible to return to the previous project after closing the window with "CloseWindow", in the same way you return to the previous project after closing with "Quit" ?
Thank you!
I really would also like to know how if it would be possible to return to the previous project after closing the window with "CloseWindow", in the same way you return to the previous project after closing with "Quit" ?
I don't think there would be a way. We save the orientation of your tabs every time you open or close one.
I really would also like to know how if it would be possible to return to the previous project after closing the window with "CloseWindow", in the same way you return to the previous project after closing with "Quit" ?
I don't think there would be a way. We save the orientation of your tabs every time you open or close one.
I feel like this is a good feature and I'll make an issue out of it explaining why, along with a PR to fix it.
Darn, this got reverted. @williamviktorsson , are you interested in working on a modified version of this feature (i.e. with a setting defaulted to false as noted in #10986)?
Darn, this got reverted. @williamviktorsson , are you interested in working on a modified version of this feature (i.e. with a setting defaulted to
falseas noted in #10986)?
I could but I’m occupied for a few weeks. The changes in my reverted pr is one line of code so it should be easy to include and wrap in a setting check :-)