# Refactor buffer headers to collapse on click \(\#42021\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2f463370cc387b38a9e14a6c9da2aea6317838e6

Requested commit: 2f463370cc387b38a9e14a6c9da2aea6317838e6

Commit: 2f463370cc387b38a9e14a6c9da2aea6317838e6

Tree: 104a2b0c3e98c9660034da35fa0ec3655c20c0a2

Author: Matt Miller

Committer: GitHub

## Message

```
Refactor buffer headers to collapse on click (#42021)

Release Notes:
Updated how clicking on multi-buffer headers works to provide better
control and prevent unexpected navigation:

Clicking the header now collapses/expands the file section instead of
opening the file.
Opening files can be done by clicking the filename or the "Open file"
button on the right side of the header.
Existing shortcuts continue to work: use the left chevron to collapse or
your keyboard shortcut to jump to the file

**Demo:**

https://github.com/user-attachments/assets/dca9ccc5-bd98-416c-97af-43b4e4b2f903
```

## Parents

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

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