Document Zed cli_default_open_behavior for one window per worktree#1
Open
blacroix wants to merge 1 commit into
Open
Document Zed cli_default_open_behavior for one window per worktree#1blacroix wants to merge 1 commit into
blacroix wants to merge 1 commit into
Conversation
When the "Open in" target is Zed, Supacode opens each worktree in its own window. This requires Zed's `cli_default_open_behavior` to be `new_window` (default is `existing_window`, which collapses worktrees into one window). Add a short hint under repository settings explaining the setting and how to reach it (`zed://settings/cli_default_open_behavior`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a short hint to Repository Settings docs explaining how to get one Zed window per worktree.
When a repository's "Open in" target is Zed, Supacode opens each worktree in its own window (and focuses the existing window if already open). This only works when Zed's
cli_default_open_behavioris set tonew_window— Zed's default isexisting_window, which collapses every worktree into a single shared window.The note tells users to set it via
zed://settings/cli_default_open_behavioror their Zedsettings.json.Context
Documents the behavior shipped by supabitapp/supacode#423 ("Generalize worktree open targets", merged), which opens Zed through its bundled CLI with the bare worktree path — relying on this setting. Relates to supabitapp/supacode#399.