ZIm/crates/git_ui/src
João Marcos 2d61a51ded
Diff View: Scroll to center of hunks when reviewing (#25846)
When reviewing hunks, scroll to put them at the center of the screen
so you can better see the context around that hunk.

The field `center_cursor` was added to the actions `editor::GoToHunk`
and `editor::GoToPrevHunk`, this was set to `false` by default in
keymaps, as it wouldn't help with in-editor navigation.

The field is set to `true` for when you trigger `git::StageAndNext`
and `git::UnstageAndNext`, this is also `true` for the buttons in the
Diff View toolbar.

Release Notes:

- N/A
2025-03-01 03:20:26 +00:00
..
branch_picker.rs Move PopoverButton into ui (#25724) 2025-02-27 02:51:19 +00:00
commit_modal.rs git_ui: New panel design (#25821) 2025-02-28 20:00:39 +00:00
git_panel.rs Fix new git panel buttons (#25844) 2025-02-28 21:19:20 -05:00
git_panel_settings.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
git_ui.rs Git push/pull/fetch (#25445) 2025-02-24 18:29:52 +00:00
picker_prompt.rs Git push/pull/fetch (#25445) 2025-02-24 18:29:52 +00:00
project_diff.rs Diff View: Scroll to center of hunks when reviewing (#25846) 2025-03-01 03:20:26 +00:00
repository_selector.rs Follow-up tweaks to new git panel footer (#25832) 2025-02-28 19:05:43 -05:00