add selected hunk count view
Dependencies
- [2]
23SFYK4Qbig view refactor into a new crate - [3]
SASAN2XCuse nav-scrollable - [4]
5O4FWCFPadd tests to_record selection and improve it - [5]
KEPKF3WOunify diffs handling, simplify view - [6]
3XRG4BB6rewritten nav-scrollable! - [7]
2SLTGWP6add change files diffs to-record selection - [8]
FU6P5QLGindicate when a file is a dir with appended '/' - [9]
XZ6D3UUEavoid alloc - [10]
C5P3JIFCrefactor out the nav-scrollable children len arg - [11]
UR4J677Rnav for log changes and refactors - [12]
KWTBNTO3diffs selection and scrolling
Change contents
- replacement in inflorescence_view/src/diff.rs at line 136
let nav = if diff_selected && select_sections {let nav_view = if diff_selected && select_sections { - replacement in inflorescence_view/src/diff.rs at line 151
let sections = el(nav);let sections = el(nav_view); - replacement in inflorescence_view/src/diff.rs at line 153
if diffs_without_contents.is_empty() {let nav_with_sections = if diffs_without_contents.is_empty() { - edit in inflorescence_view/src/diff.rs at line 162
};if select_sections {let selected_hunk_ix = nav.get_selected_section_ix().unwrap_or(0) + 1;let hunk_count = combined.sections.iter().filter(|section| matches!(section, Section::Changed { .. })).count();el(column([el(text(format!("Selected hunk: {}/{}",selected_hunk_ix, hunk_count))),nav_with_sections,]).spacing(10))} else {nav_with_sections