# editor: Add CollapseAllDiffHunks docs \(\#34124\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2b9dfa89c8eabd77750c262bd2ab705571b507a

Requested commit: e2b9dfa89c8eabd77750c262bd2ab705571b507a

Commit: e2b9dfa89c8eabd77750c262bd2ab705571b507a

Tree: 86c7f0d2021f7564bccf18889b3d67212da2e7b2

Author: Kristian Gosvig

Committer: GitHub

## Message

```
editor: Add CollapseAllDiffHunks docs (#34124)

## Summary

This PR improves the documentation for diff hunk keyboard shortcuts to
make existing functionality more discoverable to users.

### Problem

Users were unaware that pressing **ESC** already collapses all expanded
diff hunks through the existing `Cancel` action. The functionality
exists but lacks discoverability:

- The `Cancel` action description was too generic: "Cancels the current
operation"
- No documentation existed for diff hunk keyboard shortcuts in the Git
docs
- Users would naturally expect a dedicated keybinding for collapsing
diff hunks

Release Notes:

- N/A
```

## Parents

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

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