Skip to content

Adjust zed -n behavior#53346

Merged
eholk merged 1 commit intomainfrom
cli-fixes
Apr 8, 2026
Merged

Adjust zed -n behavior#53346
eholk merged 1 commit intomainfrom
cli-fixes

Conversation

@eholk
Copy link
Copy Markdown
Contributor

@eholk eholk commented Apr 7, 2026

When there's already a workspace that matches the paths provided, activate that workspace, otherwise create a new window. This is different from the default behavior of always adding to the sidebar.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • Changed zed -n to only open a new window for folders that don't already exist as a workspace root in some window. If the appropriate window already exists, -n will activate it instead.

When there's already a workspace that matches the paths provided,
activate that workspace, otherwise create a new window. This is
different from the default behavior of always adding to the sidebar.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 7, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 7, 2026
@eholk eholk enabled auto-merge (squash) April 7, 2026 23:59
@eholk eholk merged commit 66d2cb2 into main Apr 8, 2026
44 checks passed
@eholk eholk deleted the cli-fixes branch April 8, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants