Repository navigation
feat: implement lazygit-compatible scrollbars in list views - #42
Conversation
…grate into list views
|
Confidence: 4.5/5Checks run: SummaryThanks Felipe, this is a clean port.
Mapflowchart LR
scroll[gui/scroll.rs: calc_scrollbar + render_scrollbar]
views[gui/views.rs: render_list_with_range_raw]
commits[gui/views.rs: render_commit_list_ctx]
details[presentation/commit_details.rs]
diff[pager/side_by_side.rs: render_diff]
views --> scroll
commits --> scroll
details --> scroll
diff --> scroll
Start at Regressions
MigrationsNone. No config, keybinding or format changes. Before merging
|


Description
Implements exact lazygit-compatible vertical scrollbar rendering logic across all scrollable list views and diffs.
Details
calcScrollbar,calcScrollbarHeight, andcalcRealScrollbarStartEndfrom lazygit (pkg/gocui/scrollbar.goandgui.go).▐(Right Half Block) on the right panel border with matching theme border styling.render_list_with_rangeandrender_list_with_range_raw) and side-by-side / unified diff views.scrollbar_test.goverifying thumb height, scroll range, and boundary conditions.Validation
cargo test --bin lazygitrs(all 378 tests passed)cargo fmt --check