zed: Support opening welcome page on startup
Closes #40100 #43158
I saw a great suggestion in #43158 of reusing the welcome page as an option when opening Zed. Preferably we would have a dedicated startup page at some later point in time that could highlight other useful features such as remoting (or add it to the welcome page?).
Currently still on the todo list:
- [ ] Think about removing
Return to Setupfrom welcome screen conditionally (feedback appreciated) - [ ] Consider whether Welcome Page should be the default, a setting, used as a fallback or something else entirely, it likely should not be under "what to restore from a previous session"
- [ ] Docs
The PR will likely be decently large, I'm willing to pair with someone to get it merged
Release Notes:
- New setting to open a welcome page when launching Zed
Yes please add this feature it will give a nice vibe. I tried adding this but was a little hard for me because I don't really use rust
I’ve thought about it a bit more and here’s what I suggest:
-
The “Return to Setup” button should be hidden when the welcome screen is shown after the initial setup flow. It only makes sense the first time.
-
For the behavior of when to show the welcome screen, we could add a new setting that lets users choose between two modes:
- Show the welcome screen only when no workspace is open (current behavior).
- Always show the welcome screen on startup.
This setting should be exposed both in the settings file and the UI menu. I tried implementing this logic earlier, but I got stuck on wiring it into the settings system.
Let me know if this direction makes sense.
I have just built your fork and there is a issue, When zed is first launched it is skipping the setup page completely so gotta work on that.
I have just built your fork and there is a issue, When zed is first launched it is skipping the setup page completely so gotta work on that.
Unless you deleted your main Zed installation, I think it will detect that it's not your first time installing Zed
For the behavior of when to show the welcome screen, we could add a new setting that lets users choose between two modes:
- Show the welcome screen only when no workspace is open (current behavior).
- Always show the welcome screen on startup.
This setting should be exposed both in the settings file and the UI menu. I tried implementing this logic earlier, but I got stuck on wiring it into the settings system.
I think the most intuitive solution would be to allow putting all startup options into any order you want. However that seems like something maybe not possible with the current settings UI?
- The “Return to Setup” button should be hidden when the welcome screen is shown after the initial setup flow. It only makes sense the first time.
Yeah I agree. Unfortunately that means we'd need to make changes to the serialization logic which persists welcome pages currently to allow saving whether this button exists (also needs to be backwards compatible). I wonder if it would be easier to create a totally new view or a specialized copy of the current welcome page. Although I think that would need some more insights from the Zed UI team.
- For the behavior of when to show the welcome screen, we could add a new setting that lets users choose between two modes:
- Show the welcome screen only when no workspace is open (current behavior).
- Always show the welcome screen on startup.
This setting should be exposed both in the settings file and the UI menu. I tried implementing this logic earlier, but I got stuck on wiring it into the settings system.
I think the most intuitive solution would be to allow putting all startup options into any order you want. However that seems like something maybe not possible with the current settings UI?
Idk what I did was I added a dropdown.