Show image copies side by side when comparing #7
Loading…
Reference in a new issue
No description provided.
Delete branch "image-side-by-side"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The comparison the project is named for, made visual: expanding an image conflict now draws every version in a row - the original on the left, then
[a],[b], and so on - each scaled to fit its column. Instead of reading dimension numbers, the user sees which copy to keep.This replaces the parked work in #1, which predates the event-loop and testing overhaul and whose terminal probe could freeze the keyboard. Two design choices make those problems impossible here:
▀cells in the same ratatui buffer as everything else, so they work in every terminal - and they flow through the existing clipping, scrolling and snapshot machinery unchanged.Picker::from_query_stdioblocks reading stdin; it is deliberately not used, so there is no probe to freeze the keyboard.Behaviour pinned by fixtures
image/compare_three_copies- three versions in a row: original,[a],[b]; one image is wide enough to fill its column edge to edge.image/corrupt_png- the original's PNG header parses (so the group is an image and expands) but its pixels are gone: its column stays blank while the readable copy still shows next to it.image/narrow_five_cols/image/narrow_six_cols- a column narrower than gutter, pixel, gutter cannot show anything, so 5 columns drops the thumbnail block entirely and 6 columns shows the smallest possible thumbnails with labels cut to fit.image/dimensions- the two-copy case, re-accepted with the thumbnails now present.Checked
-D warnings.main, as CI will: 28 mutants, 28 caught, 0 missed.Merging this closes the image-comparison item from the plan; #1 can be closed afterwards as superseded.