zed
                                
                                 zed copied to clipboard
                                
                                    zed copied to clipboard
                            
                            
                            
                        "Open Recent" should be available with no open windows
Check for existing issues
- [X] Completed
Describe the feature
Currently if you close all windows of Zed and try to open a recent project, the "File / Open Recent" menu item is disabled. It should be available even when no windows are open.
If applicable, add mockups / screenshots to help present your vision of the feature
For the reference, this is probably being greyed out due to recent_projects::OpenRecent being registered on a workspace and not as a global action; the code responsible for greying out menu items checks for action availability: https://github.com/zed-industries/zed/blob/main/crates/gpui/src/platform/app_menu.rs#L104
However, I don't think we have a precedent for having modals without a workspace associated with them, so this might require a deeper cut.
I wonder if we could fall back to just showing the recents in the menu, if a workspace isn't avaiable, as VS Code does, but maybe that would be weird, having two different mechanisms. I do like custom version because I prefer being able to filter down via text.
Side note, I'm positive I have an issue about this lying around, but I cannot find it, for the life of me. 🤣
I have to say that I would actually prefer the menu variant, as it would allow me to use the keyboard to navigate down the menu and through the recently opened projects. This is also how 'open recent' works in practically all Mac applications. To show the modal window variant, I would prefer to have that be its own menu entry in that 'open recent' menu.
The modal window would then be great to allow filtering, show way more items and add additional UI to filter that down (by date, project type, path whatever).
If it is hard to show that while no workspace is open, you could also gray out only that additional menu entry to show the UI and still allow using the menu entries in the meantime. Then fix the modal UI later.
This is very puzzling behaviour if you don't know what's going on. After all, what you're opening with "open recent" is a workspace! Why should there have to be a workspace already open before you can open another workspace? (thinks the new user).
It's quite odd that when you start Zed with no windows open, the usual Cmd-Opt-O to select a recent workspace just has no effect, and the menu option is greyed out. Instead, you have to uselessly open a new window, then select your workspace.
Maybe one possible solution is to have 'open recent' open a new workspace if none is open, then show the dialog.