Open project instead of file when single file is given to zed
cli
#26199
Replies: 2 comments
-
Hey @liebkne, it is possible I'm missing something here, but how would zed know where to open the project at? For instance, if I provided a full, aboslute path to a file:
What would it consider to be the project? |
Beta Was this translation helpful? Give feedback.
-
@JosephTLyons That might be the missing part. For example, the
In the worse situation I think the VC repo could be opened in this case. |
Beta Was this translation helpful? Give feedback.
-
Check for existing issues
Describe the feature
If the single file is part of a project,
zed that_file
will only open the file but not the project. For example,will only open
main.rs
in the new window. I think if a single path is givenzed
in this case, it may be better to also open the whole project instead.Otherwise, one can not select any other files from the sidebar or the file selector (
file finder: toggle
) because they are not listed there. That's a bit inconvenient.(Note that I know
zed project
will open the project in this case, but this FR is not about opening a project but "opening the related project when a single file path is given")If applicable, add mockups / screenshots to help present your vision of the feature
No response
Beta Was this translation helpful? Give feedback.
All reactions