# git_ui: Add button to remove open worktrees from the window in the worktree picker \(\#58996\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/11115a967f40131a2ff6655ab8f0916722648346)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 11115a967f40131a2ff6655ab8f0916722648346

Requested commit: 11115a967f40131a2ff6655ab8f0916722648346

Commit: 11115a967f40131a2ff6655ab8f0916722648346

Tree: a1b5abecb050b3e2e37574e9c0285d41c86f318b

Author: Anthony Eid

Committer: GitHub

## Message

```
git_ui: Add button to remove open worktrees from the window in the worktree picker (#58996)

The git worktree picker shows worktrees open in the current window, but
had no way to remove them. This adds a "Remove Worktree from Window"
button (same `X` icon as the recent projects picker's "Remove Project
from Window") that closes the corresponding workspace in the
multi-workspace, without deleting the git worktree itself.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added a button to the git worktree picker to remove an open worktree
from the current window.
```

## Parents

- [a98485809be0d6c14a52384f5eea5327151e2986](https://git.cafe/gitcafe/zed/commit/a98485809be0d6c14a52384f5eea5327151e2986?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/11115a967f40131a2ff6655ab8f0916722648346?format=markdown)
