Zed window should remember last window size and position when opening single files #24228
Replies: 81 comments 13 replies
-
|
Blocks on: https://github.com/zed-industries/feedback/issues/430 |
Beta Was this translation helpful? Give feedback.
-
|
+1 — this is going to sound ridiculous, but it's a blocker for adaptation for me as I open a lot of temporary windows in my workflow (currently using Sublime.) |
Beta Was this translation helpful? Give feedback.
-
I don't think it is ridiculous, it is a pain to reset everything up every time. |
Beta Was this translation helpful? Give feedback.
-
|
This and a "recent" file menu (#77) is adding unnecessary friction to getting started with my work. Hard to measure the pain threshold, but its in the back of my mind every time I open Zed. |
Beta Was this translation helpful? Give feedback.
-
|
An option to "reopen where left off" (last project and files open from before last close) would also be lovely! |
Beta Was this translation helpful? Give feedback.
-
|
This was the first thing I noticed when I launched the app. I'm glad to see other people care. The mention of serializable workspaces (#430) makes me worry about it being tied to saving a workspace. I basically only care about the default new window size which I would think would be tied to a new (unsaved) workspace. |
Beta Was this translation helpful? Give feedback.
-
|
I just came here to say the exact same thing as @emlynmu – this should be separate behavior from serializing workspaces. On macOS, whenever you open a new window of an existing (well-behaved) application, it matches the size of the most recent1 window. It should also open in a new position, offset down-and-to-the-right (with "wrapping" that respects positions of existing windows) behavior. Here's how it looks with VS Code (it took them years to get to it, but they finally did 😂): CleanShot.2022-11-17.at.10.06.38-converted.mp4Footnotes
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the behavioral explanation @chriskrycho! :D |
Beta Was this translation helpful? Give feedback.
-
|
This should go out with v0.72.0. |
Beta Was this translation helpful? Give feedback.
-
|
I regret to say: This is not quite fixed in 0.72.x, though it took a big step forward: It is fixed when saving workspaces, and appears to remember the position used for a specific folder, but the feature request here is for a muuuuuch more general feature! See e.g. my example above—and note as well that you can trivially reproduce this by just opening any folder and then opening any new window! |
Beta Was this translation helpful? Give feedback.
-
|
If I close Zed while fullscreen it still won't start in fullscreen mode. It would improve consistency if it would remember the mode across restarts. |
Beta Was this translation helpful? Give feedback.
-
|
Bump, cc @JosephTLyons |
Beta Was this translation helpful? Give feedback.
-
|
I think it would be ideal if the new editor window had the dimensions of the recently opened project window. Don't like it when a 'clean' window takes up the entire desktop. |
Beta Was this translation helpful? Give feedback.
-
|
This is a problem for me as well (running v0.119.16), and super annoying as well. I don't have any projects open. When I launch Zed, it's to an empty/blank new file window. I'll adjust the size and location of the new file window, to my liking. I then close Zed. When I reopen Zed, the window doesn't have the previous size/location of the window and instead reverts to being max width/height of screen. CC: @mikayla-maki @JosephTLyons (Thanks for all the great work on Zed) |
Beta Was this translation helpful? Give feedback.
-
|
+1, it's crucial. I'm using 32:9 ultra wide monitor + Rectangle for resizing my windows. I know probably using such monitor isn't good for coding, but usually I place all my windows in the center of the screen, and it's fine for me. When I want to quickly edit some files (e.g. "Open With... -> Zed.app"), every time the editor opens full screen and I need to manually adjust the size of the window. What's interesting, is that the editor does remember the last position, but particularly for a single file, and it's not possible to remember window size and position for other files that were not open yet. My Jetbains products and vs code does remember size/position, but zed does not, which is huge blocker. |
Beta Was this translation helpful? Give feedback.
-
|
Reopening windows in the same position that they were in when the applications were quit is a very standard macOS behaviour. (I understand that this behaviour technically is present for projects but not for single files.) Sublime Text does it, TextEdit does it, the built-in Terminal.app does it. Ghostty doesn't have it (* without a configuration option) and it's just as jarring there as is it with Zed. I would love to adopt Zed as my main IDE but the fact window position isn't saved really jumped out to me as one of the (very few!) things I disliked. |
Beta Was this translation helpful? Give feedback.
-
|
True. It seems the issue plagues the greatest modern tools (also Ghostty and Arc) which is ridiculous (despite the fact macOS isn't particularly famous for keeping windows in place). |
Beta Was this translation helpful? Give feedback.
-
|
I figure this was a platform-dependent issue and potentially a MacOS issue. I was surprised that this doesn't "just work" like with MacVim, etc. Not only does Zed not remember the size and position of the window, but also it opens on the wrong display (2 displays). I'm still not positive my problem is the one mentioned in this thread. UPDATE: I figured out the behavior and a workaround. If you only open Zed in "single file" mode or without a project, it won't remember those window changes. But as soon as you open a project, and manipulate its location/etc, it will store those settings. They are remembered even if you just open Zed in "new window" mode. That's good enough for me. |
Beta Was this translation helpful? Give feedback.
-
|
I'm using Ubuntu and Zed always opens maximized. This is very frustrating since this is a very performant editor and opens very quickly, I'm trying to use it to make quick changes to some files or take notes in markdown on demand, but it occupies the whole screen and disrupts my workflow |
Beta Was this translation helpful? Give feedback.
-
|
What's the status on this issue ? It's been years... Overall Zed is an excellent editor but frankly this bug is kinda annoying. |
Beta Was this translation helpful? Give feedback.
-
|
Just switched from 0.204.3, where maximization state was preserved correctly, to 0.206.6 (new stable), and the problem appeared. On the next start, the window is slightly smaller and shifted to the bottom right. Debian Bookworm, Cinnamon. |
Beta Was this translation helpful? Give feedback.
-
|
I was excited about the Windows beta release. And this issue is getting me uninstall it. Ridiculous it's not fixed after 3 years. |
Beta Was this translation helpful? Give feedback.
-
|
Linux / ubuntu 25.04, installed via flatpak. Very annoying that even the window size is not remembered across app restarts. |
Beta Was this translation helpful? Give feedback.
-
|
On Windows, restoring last position and size is expected. Looks promising but I will have to wait until this is resolved. |
Beta Was this translation helpful? Give feedback.
-
|
I intalled Zed today 10/24/2025 and it updated after installing. |
Beta Was this translation helpful? Give feedback.
-
|
Hope they fix it. I am already loving this editor. |
Beta Was this translation helpful? Give feedback.
-
|
This thread should be pinned. |
Beta Was this translation helpful? Give feedback.
-
|
Maddening. |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone! First off, I want to recognize that us not supporting restoring window size and position when opening single files or when not opening any files/project is annoying to say the least. I do want to clarify what we do support (or at least should support and if we don't, please file an issue or pile on to the existing one I just opened, if you're on Linux: #43952). What we do support today across platforms (except for the Linux bug above):
I would love to understand some of you all's workflows when it relates to:
We want to implement this for you but it's not trivial and having a better understanding of your workflows will help me prioritize this internally. Thank you so much in advance! |
Beta Was this translation helpful? Give feedback.
-
|
We'd love help on "fixing":
And adding support for:
@ConradIrwin will pair with you, he promised me 😄 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Check for existing issues
Describe the bug
When opening Zed it should remember previous window size and position when Zed was closed.
To reproduce
Expected behavior
Expected: previous window size/position is honored.
Now: Using same size and location at startup.
Environment
Zed 0.49.1 – /Applications/Zed.app \nmacOS 12.5 \narchitecture x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.logfile to this issueNo response
Beta Was this translation helpful? Give feedback.
All reactions