# Add :tabonly and :only vim commands \(\#8337\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a42b987929ef515d693c63f3b8e7848b5423501e

Requested commit: a42b987929ef515d693c63f3b8e7848b5423501e

Commit: a42b987929ef515d693c63f3b8e7848b5423501e

Tree: dabf1134a70283318bee951dc123f5efbd735646

Author: riccardofano

Committer: GitHub

## Message

```
Add :tabonly and :only vim commands (#8337)

Release Notes:

- Added
[`:tabo[nly][!]`](https://neovim.io/doc/user/tabpage.html#%3Atabonly),
closes all the tabs except the active one but in the current pane only,
every other split pane remains unaffected.
The version with the `!` force closes the tabs while the one without
asks you to save or discard the changes.
- Added [`:on[ly][!]`](https://neovim.io/doc/user/windows.html#%3Aonly),
closes all the tabs *and* panes except the active one.
The version with the `!` force closes the tabs while the one without
asks you to save or discard the changes.
Since Zed does not have different splits per tab like in Neovim `:only`
works the same as it does in VscodeVim.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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