Open noinfo opened 9 months ago
Are you looking for something different than setting "restore_on_startup": "none"
in your settings.json?
Yes, I think I do. When I actively remove any open projects from zed before closing, I expect it to open "empty" as I left it. But it does'nt. It will restore to the last project I had opened instead of the bare, empty state. I do want to it to reopen to a project if I left it open. But I also want it to restore to empty if I consciously do so before closing.
Are you looking for something different than setting
"restore_on_startup": "none"
in your settings.json?
I tried using this as a work around - even though it's not what I want - and noticed something interesting (probably another issue). The setting works when launching from the macOS GUI, Spotlight or Alfred.app. The setting does not do anything at all when launching from the CLI. It launches a second window that will also reopen the last opened project. Opening the settings there will show that "restore_on_startup": "none"
is correctly set however.
Are you looking for something different than setting
"restore_on_startup": "none"
in your settings.json?I tried using this as a work around - even though it's not what I want - and noticed something interesting (probably another issue). The setting works when launching from the macOS GUI, Spotlight or Alfred.app. The setting does not do anything at all when launching from the CLI. It launches a second window that will also reopen the last opened project. Opening the settings there will show that
"restore_on_startup": "none"
is correctly set however.
This is actually a different issue:
I take it you want Zed to open with an empty project, should you have exited the application in the below displayed state?
I can reproduce this with current releases. If you close the workspace (cmd+w) before quitting (cmd+q) when you come back, Zed reopens that workspace instead of giving you a blank window. This behavior differs what other editors do and thus what some users will expect.
~On Linux, "restore_on_startup": "none"
setting does not work. The editor still opens the folder from the last session.~
In version 0.146.3 the setting works properly.
Was having the same issue here. Tried "restore_on_startup": "none"
in settings.json and it did prevent previously worked on projects from opening. But the issue isn't entirely fixed because when opening up a project using the cli you should expect the project to be the only one that opens, however now I am getting the project I wanted opened as well as a blank project.
I'm using Zed Dev 0.160.0 and I'm trying to understand this behavior.
I remove all folders from the project until the sidebar shows "Open a project Ctrl + O".
When I reopen Zed it shows the last folder I removed from the project no matter what I try.
"restore_on_startup": "none"
shouldn't be needed because sometimes I specifically WANT for the folders to be restored but if I purposefully remove them, it should restore the same state as when I closed it.
In short: I expect Zed to have exactly the same state when reopened no matter if I have any folders added to a project. If none are opened upon closing the application it should reopen exactly as it was left.
Check for existing issues
Describe the bug / provide steps to reproduce it
I have downloaded zed and opened a folder as a project. When I close the project I habe zed in the state that I want it in on startup. However whenever I start up zed it opens the closed project again.
I can not close the project and have it stay closed. It always reopens on its own.
Environment
Zed: v0.121.7 (Zed) OS: macOS 14.3.0 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.zed.log