# git_ui: Toggle directory expansion with Enter key in tree view \(\#52965\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c512c72b634d9e3f7c907846ee111f68cf41dbbb

Requested commit: c512c72b634d9e3f7c907846ee111f68cf41dbbb

Commit: c512c72b634d9e3f7c907846ee111f68cf41dbbb

Tree: 47257f9929ab5ff2909ce67bc3e551a6fa924050

Author: Erin van der Veen

Committer: GitHub

## Message

```
git_ui: Toggle directory expansion with Enter key in tree view (#52965)

Semantics and code was mostly taken from the existing behaviour of the
Left/Right arrow keys.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #51986

Release Notes:

- Added ability to toggle tree collapse in git panel
```

## Parents

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

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