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

A setting for how Zed should open #5506

Closed
JosephTLyons opened this issue Jun 28, 2022 · 9 comments
Closed

A setting for how Zed should open #5506

JosephTLyons opened this issue Jun 28, 2022 · 9 comments
Assignees
Labels
enhancement [core label]

Comments

@JosephTLyons
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, Zed always opens a Zed window in an empty state - a setting here might be nice:

Describe the solution you'd like

  1. Open to an empty state
  2. Open to the same project from the last Zed session

Option 2 has some additional things to consider:

  • If you had multiple projects open in different Zed windows - should those all be reopened?
  • Should reopening an previous project restore the entire state of the editor? - Panes, tabs, etc..?

Maybe each of those have one definitive answer, or maybe they are settings themselves 🤷‍♂️

@JosephTLyons
Copy link
Contributor Author

JosephTLyons commented Jun 28, 2022

As I begin to use Zed more and more, this one is becoming more obvious to me. I almost always have an instance of Zed open in my work notes directory, where I have a handful of tabs open all the time. Whenever an update happens, I restart Zed and lose all of those tabs; I have to remember which ones I had open and reopen them manually.

@mikayla-maki
Copy link
Contributor

Yeah, the opening to an empty state feels strange. Also, I wish zed would open the file tree view on the left after you add a folder to an empty project, flow feels like there's not enough feedback for it yet.

@aadibajpai
Copy link

this would also be cool when zed is started after updates, feels a bit off to reopen the project manually

@SomeoneToIgnore
Copy link
Contributor

As a Sublime user, I really enjoy its reasonable defaults to restoration: it seamlessly remembers every settings change, every window open, their position, size, etc. and uses it as a new default for every new window opened or future app restarts.

What's particularly amazing is that they restore unsaved tabs' state: when you reopen the editor again, you'll get the same tabs opened, files from FS are loaded and your unsaved changes are placed on top as they were before closing, still unsaved.
No dialogues, pop-ups or whatever noise, you just start you work in the "same" state as you've closed it yesterday, in a fraction of a second.

@mikayla-maki
Copy link
Contributor

@TerminalFi
Copy link

As a Sublime user, I really enjoy its reasonable defaults to restoration: it seamlessly remembers every settings change, every window open, their position, size, etc. and uses it as a new default for every new window opened or future app restarts.

What's particularly amazing is that they restore unsaved tabs' state: when you reopen the editor again, you'll get the same tabs opened, files from FS are loaded and your unsaved changes are placed on top as they were before closing, still unsaved. No dialogues, pop-ups or whatever noise, you just start you work in the "same" state as you've closed it yesterday, in a fraction of a second.

Yes I’m a heavy Sublime user. 5-6 hours daily. Zed usage is increasing though!

sublimes sessions and the hot_exit capabilities are what zed needs. A concept of them, I think there is room for improvements for both

@mikayla-maki
Copy link
Contributor

Rather than a setting, we should probably change 'Open' to mutate your existing workspace. Regardless, the default now saves and restores your same project

@mikayla-maki mikayla-maki mentioned this issue Dec 4, 2022
48 tasks
@kennydiff
Copy link

I also have a similar problem. I hope to be able to quickly open a blank file so that I can write something down quickly, instead of opening it and then pressing "shift + ⌘ + n" to create a new project.

@petros
Copy link
Contributor

petros commented Mar 16, 2023

You should be able to do something like:

zed ~/new-file.md

and Zed should touch and open that file. Maybe not exactly what you want, but should cover some workflows.

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label]
Projects
None yet
Development

No branches or pull requests

8 participants