zed
zed copied to clipboard
How to automatically open the last file after restarting zed ?
Check for existing issues
- [ ] Completed
Describe the feature
How to automatically open the last file after restarting zed ? When I reopened zed, it went blank. That's too bad.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Huh - that is odd. Zed should be serializing out which files are open per project and should be reopening the last opened project, when opening the app. Could you send a screen video that shows:
- Opening Zed
- Opening a projeect
- Opening a file
- Close Zed
- Opening Zed again
Thank you very much for your explanation. I have tried it, and everything works fine when I open the project with Zed. However, if I open an individual file, then after restarting Zed, the file will not be reopened.
@JosephTLyons
I too experience this the latest preview (Zed Preview 0.139.3
) for individual files.
(It doesn't matter if I have 1 or 100 individuals files open. If I restart Zed, it's a blank slate and doesn't re-open any files I previously had open).
FYI - there a lot of bugs that aren't experience when in Project View but are experienced when in Opening Individual Files view.
Like this bug report.
Here is another bug that isn't experienced in Project View but is experienced in Individual File view.
@JosephTLyons
Any updates on this ticket?
Video can be seen here: https://github.com/zed-industries/zed/issues/5258#issuecomment-2012187539
@JosephTLyons any updates. Video of the big is linked above.
@michealp-coder Currently Zed only restores open files that are within an open workspace/project folder.
I believe this is an enhancement which would address your request:
- https://github.com/zed-industries/zed/issues/15098
Although your issue is older I'm going to close this in favor of that one because it has more upvotes. Thanks for reporting.