Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions content/docs/worktree/repository-settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ From the repository settings UI, you can change:

Supacode also persists the selected "Open in" target for each repository.

### Opening worktrees in Zed

When the "Open in" target is **Zed**, Supacode opens each worktree as its own Zed window, and focuses the existing window when that worktree is already open.

This relies on Zed's `cli_default_open_behavior` setting being `new_window`. Zed's default is `existing_window`, which makes every worktree collapse into a single shared window. Set it from Zed via `zed://settings/cli_default_open_behavior`, or add to your Zed `settings.json`:

```json
"cli_default_open_behavior": "new_window"
```

## On-disk file

If a repository contains a `supacode.json` file at its root, Supacode reads and writes repository settings there.
Expand Down