# Add \`editor::ToggleFoldAll\` action \(\#34317\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a2f5c47e2d91053a5e1a73d4eb7c65b5086a7fbc

Requested commit: a2f5c47e2d91053a5e1a73d4eb7c65b5086a7fbc

Commit: a2f5c47e2d91053a5e1a73d4eb7c65b5086a7fbc

Tree: 603971ac5f7d6d0aebff02b3869969c9fa11c9f3

Author: Peter Tripp

Committer: GitHub

## Message

````
Add `editor::ToggleFoldAll` action (#34317)

In multibuffers adds the ability to alt-click to fold/unfold all
excepts. In singleton buffers it adds the ability to toggle back and
forth between `editor::FoldAll` and `editor::UnfoldAll`.

Bind it in your keymap with:

```json
  {
    "context": "Editor && (mode == full || multibuffer)",
    "bindings": {
      "cmd-k cmd-o": "editor::ToggleFoldAll"
    }
  },
```

<img width="253" height="99" alt="Screenshot 2025-07-11 at 17 04 25"
src="https://github.com/user-attachments/assets/94de8275-d2ee-4cf8-a46c-a698ccdb60e3"
/>

Release Notes:

- Add ability to fold all excerpts in a multibuffer (alt-click) and in
singleton buffers `editor::ToggleFoldAll`
````

## Parents

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

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