# feat\(workspace\): add action for closing inactive editors on all panes \(\#2771\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e945b3c0e1872d86179110245eb40a5fae1df7c6

Requested commit: e945b3c0e1872d86179110245eb40a5fae1df7c6

Commit: e945b3c0e1872d86179110245eb40a5fae1df7c6

Tree: 7cf99e2c22a8b7cf0b59788583cdf60554e1e712

Author: Mikayla Maki

Committer: GitHub

## Message

```
feat(workspace): add action for closing inactive editors on all panes (#2771)

using zed more and more to develop zed itself I'm finding some small qol
features missing, this is one of them
I'm very used to open two or three splits, and sometimes I want to close
everything except for the active editor, but that wasn't supported, as
the `pane::CloseInactiveItems` action only closes inactive items on the
active pane

so I've implemented it really quick, although I'm not sure it's the
right way to do this

note: I really don't like the default keybinding I've set it to, I have
this action bound to `cmd-shift-w` on all editors, but in zed is taken,
so I chose something that's free but without thinking too much about it

Release Notes:

- Added action for closing inactive editors from all panes
```

## Parents

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

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

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