Support zed . CLI inside Dev Containers to open specific subdirectories (Monolithic Dev-Machine use case)
#52870
GinoNovello
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What are you proposing?
Inject the
zedCLI into Dev Containers to allow opening specific subdirectories as new, scoped Zed windows from the integrated terminal, bypassing the strict requirement of having a.devcontainer.jsonin the opened folder.Why does this matter?
Zed currently requires a
.devcontainer.jsonin the root of the opened folder to mount the container. For a monolithic "Dev-Machine" setup (multiple projects in a/reposfolder), users are forced to open the root. This clutters the file tree and ruinsCtrl+Psearch. Injecting the CLI allows running a single container to save resources, while maintaining clean, project-scoped editor windows.Are there any examples or context?
In VS Code, you can open the root container,
cdinto/repos/my-project, and runcode .. This opens a new window scoped only to that project within the same running container. In Zed,zed .returnscommand not found.Possible approach
Automatically inject the
zedCLI binary upon connection. When executed, it should communicate with the host's Zed instance to launch a new window scoped to the requested path, attaching to the existing container lifecycle instead of looking for a local.devcontainer.json.Beta Was this translation helpful? Give feedback.
All reactions