Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to automatically open the last file after restarting zed ? #11880

Closed
1 task
arfbt opened this issue May 16, 2024 · 6 comments
Closed
1 task

How to automatically open the last file after restarting zed ? #11880

arfbt opened this issue May 16, 2024 · 6 comments
Labels
feature [core label] serialization Restoration of the editor state after a restart workspace Feedback for workspace management, layout, interactions, etc

Comments

@arfbt
Copy link

arfbt commented May 16, 2024

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

@arfbt arfbt added admin read feature [core label] labels May 16, 2024
@JosephTLyons JosephTLyons added workspace Feedback for workspace management, layout, interactions, etc serialization Restoration of the editor state after a restart and removed triage labels May 16, 2024
@JosephTLyons
Copy link
Collaborator

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:

  1. Opening Zed
  2. Opening a projeect
  3. Opening a file
  4. Close Zed
  5. Opening Zed again

@arfbt
Copy link
Author

arfbt commented May 17, 2024

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.

@michealp-coder
Copy link

michealp-coder commented Jun 7, 2024

@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.

@michealp-coder
Copy link

@JosephTLyons

Any updates on this ticket?

@michealp-coder
Copy link

michealp-coder commented Jun 17, 2024

Video can be seen here: #5258 (comment)

@JosephTLyons any updates. Video of the big is linked above.

@notpeter
Copy link
Member

@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:

Although your issue is older I'm going to close this in favor of that one because it has more upvotes. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] serialization Restoration of the editor state after a restart workspace Feedback for workspace management, layout, interactions, etc
Projects
None yet
Development

No branches or pull requests

4 participants