Skip to main content
Image

r/ZedEditor


My Custom theme you all may feel its niche
My Custom theme you all may feel its niche
Image r/ZedEditor - My Custom theme you all may feel its niche

Advertisement: From CAD to Anything
From CAD to Anything
media poster


DBDelve, DB Client made in GPUI
DBDelve, DB Client made in GPUI
media poster

How do you manage multi-root projects in Zed?
How do you manage multi-root projects in Zed?

Hi!

I'm curious how you handle projects with multiple root directories, similar to VS Code's multi-root workspaces.

One thing that's been bugging me is $ZED_WORKTREE_ROOT in tasks. When multiple folders are open, it sometimes resolves to a different root than I'd expect.

For example, when launching Zed with:

zed -n ./main-project ./shared-lib ./other-stuff

I'd love for the first directory to act as the "main" project root, especially for tasks. But Zed doesn't seem to have that concept.

How are you handling this? Any clever workarounds, conventions, or workflow hacks I'm missing?

Curious to hear how others have solved this!