# git_panel: Add support for vertically expanding the commit editor \(\#55043\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4e636bf07a0ccc6873782c73b64357a584d42c6f

Requested commit: 4e636bf07a0ccc6873782c73b64357a584d42c6f

Commit: 4e636bf07a0ccc6873782c73b64357a584d42c6f

Tree: 788ad95cfcb9f120bc0507be78c3daf27e44ec66

Author: Dino

Committer: GitHub

## Message

```
git_panel: Add support for vertically expanding the commit editor (#55043)

Using the existing commit editor in the Git Panel to type out longer
commit messages has been somewhat hard. I believe this happens because
it takes a very small portion of the UI which, unfortunately, when `git:
expand commit editor` is used, a modal ends up taking the center of the
editor, making it possible to have the commit editor open on the side,
while the `git: diff` view is open.

As such, this Pull Request introduces a new
`git::ToggleFillCommitEditor` action that allows users to update the
commit editor's height so as to take as much vertical space as possible,
hiding the entries status and simply rendering the Git Panel's footer.

This makes it easier to be able to write longer commit messages while
still having the `git: branch diff` on the side, something that's very
complicated with the default number of lines in the commit editor and
impossible using the `CommitModal`.

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)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added a `git::ToggleFillCommitEditor` action that expands the commit
editor to fill the git panel's available vertical space.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
```

## Parents

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

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