# Add key binding to close all docks \(\#2769\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f89de0b80d9b7dac22e3e0eb1a26ef8d18c943f

Requested commit: 5f89de0b80d9b7dac22e3e0eb1a26ef8d18c943f

Commit: 5f89de0b80d9b7dac22e3e0eb1a26ef8d18c943f

Tree: 7c52d267eee777e1b2e1f31e5b182e597a4f38f6

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Add key binding to close all docks (#2769)

Fixes:
https://linear.app/zed-industries/issue/Z-2680/add-a-close-all-docks-action

I frequently get stuck in this state:

<img width="1608" alt="SCR-20230721-dgvs"
src="https://github.com/zed-industries/zed/assets/19867440/13257e6d-f75a-4d1c-9718-153499e90c60">

I could zoom, but I dont want to in this case, I just want to close
everything, to get back to a truly decluttered state. Running 3 toggle
commands is cumbersome. I'd like to be able to close all docks with one
action.

I added an action with the key binding `alt-cmd-y` (similar
to`alt-cmd-t`, which is used to close all tabs). My original choice was
`alt-cmd-d` (`d` for dock), but that is the default macOS key binding to
hide the system dock.


Release Notes:

- Added a `workspace: close all docks` action (deployed via
`alt-cmd-y`).
```

## Parents

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

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

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