zed/crates/git_ui/src
Dino 4e636bf07a
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>
2026-04-28 16:09:23 +00:00
..
askpass_modal.rs windows: Encrypt SSH passwords stored in memory (#38427) 2025-09-23 18:58:46 +02:00
blame_ui.rs theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
branch_picker.rs branch_picker: Add button to filter remote branches (#54632) 2026-04-23 18:26:44 +00:00
clone.rs git: Improve handling of unsafe repositories (#43693) 2026-04-24 17:14:24 +00:00
commit_message_prompt.txt git_ui: Try to prompt the model out of including the diff output (#26281) 2025-03-07 15:05:35 +00:00
commit_modal.rs Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
commit_tooltip.rs theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
commit_view.rs editor: Introduce Bookmarks (#54174) 2026-04-17 13:54:43 +02:00
conflict_view.rs Fix when agent-powered merge conflict button shows up (#54791) 2026-04-24 14:41:44 +00:00
file_diff_view.rs Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
git_panel.rs git_panel: Add support for vertically expanding the commit editor (#55043) 2026-04-28 16:09:23 +00:00
git_panel_settings.rs Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
git_picker.rs Move the worktree picker to the title bar + make it always visible (#54183) 2026-04-20 09:29:51 +00:00
git_ui.rs git: Replace file history view with git graph (#50288) 2026-04-24 02:51:19 +00:00
multi_diff_view.rs editor: Replace BreadcrumbText with HighlightedText (#51083) 2026-03-13 08:00:22 +00:00
picker_prompt.rs gpui: Implement From<String> for ElementId (#44447) 2025-12-09 09:08:59 +01:00
project_diff.rs Remove smol as a dependency from a bunch of crates (#53603) 2026-04-24 10:29:51 +00:00
remote_output.rs git_ui: Ignore extraneous links in git output (#49817) 2026-02-21 21:48:39 +01:00
repository_selector.rs git_ui: Align repo and branch pickers (#47752) 2026-01-28 11:03:25 -03:00
stash_picker.rs Move the worktree picker to the title bar + make it always visible (#54183) 2026-04-20 09:29:51 +00:00
text_diff_view.rs Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
worktree_names.rs Move the worktree picker to the title bar + make it always visible (#54183) 2026-04-20 09:29:51 +00:00
worktree_picker.rs Move the worktree picker to the title bar + make it always visible (#54183) 2026-04-20 09:29:51 +00:00
worktree_service.rs Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00