Open verybigelephants opened 2 months ago
Perhaps I'm misunderstanding something but you can absolutely use zed as an editor of individual files without opening a specific folder as a project.
When I run the following: zed ~/.zshrc ~/Brewfile ~/.yarnrc
I get a Zed window with three open tabs. If I subsequently run zed ~/.ssh/config
I now have four open tabs.
Similarly, in my ~/.gitconfig
I have the following to spawn Zed for editing my commit messages (remove the --new
if you want to reuse the existing window):
[core]
editor = zed --new --wait
Are there specific missing features that makes Zed difficult to use in this mode for you?
Obviously it could be better:
Or perhaps this is what you're going for:
i think adding options for creating a file or open a folder without calling it a project would help. also by default zed always opens the most recent project and there is no clear way to close it and just have an interface where you can open files and folder.
i suggest adding something like the vscode welcome screen where there are the recently opened folders and options to create a new folder or file to work on.
Note that the "there must be a project" assumption leads to other issues as well. For example, it's not possible to open a /dev/fd/…
file using the zed
CLI (in order to work around the inability to pipe input to the zed
command) - that causes an error in worktree.rs
.
there is no clear way to close it and just have an interface where you can open files and folder.
I think some of what you're experiencing are things that have been lost in translation when compared to the MacOS experience.
New Window
/ New File
actions are not exposed via the GUI menu on Linux (they are under the File Menu on Mac). You can use the command palette or keyboard shortcuts:On Linux, we can't tell the difference between "Closing the last workspace window" and "Quitting Zed" because there's no way for Zed to be open without an associated Project window. Currently when you quit zed, we always restore the last closed project when you return. Ironically, VSCode has this behavior on MacOS too -- the only way to open to an empty workspace (Welcome landing page) is to have close your project window, then open a new window with an empty workspace, then quit and you'll get the empty/welcome workspace start (same as Zed on Linux).
I'm not sure the right answer as for how to differentiate between the user's intent to "close zed" (should restore project) or "close project" (should not restore) on Windows and Linux when spawned from the graphical environment.
A workaround in the meantime is to spawn zed from the cli with zed -n
:
-n, --new
Create a new workspace
I'm not sure the right answer as for how to differentiate between the user's intent to "close zed" (should restore project) or "close project" (should not restore) on Windows and Linux when spawned from the graphical environment.
My 2c:
Check for existing issues
Describe the feature
First of all, i love Zed editor!
However, right now it is very "project -centric" and not being able to be used as a regular a swiss knife editor like for example Sublime - you open a workspace and are able to navigate files there. This is pretty awesome when you're developing one single project.
But there are scenarios when you simply don't follow this workflow. You open multiple files in different folders, different servers, etc. and work on a different paradigm rather than developing a single project.
It would be awesome if we were able to configure Zed to be used as a regular text editor when we're not forced to have a single "project" opened and edit files in there, but rather to use it as a universal editing tool and switch between open file tabs as we please.
Or am i missing something? Please forgive me my ignorance in case i have missed some program setting
If applicable, add mockups / screenshots to help present your vision of the feature
n/a