Skip to content

Keep retained live rows indexable after resize - #183

Merged
tony merged 3 commits into
masterfrom
fix/100-retained-live-row
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
fix/100-retained-live-row

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #100

What changed, and why:

A retained live RowView uses the current screen width when indexed or rendered. A retained slice clips its selected columns to the current width. Frozen rows keep their captured dimensions.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #183
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:55
@tony
tony force-pushed the fix/100-retained-live-row branch from a6ab3fd to 6530762 Compare December 3, 2026 23:58
@tony
tony force-pushed the fix/100-retained-live-row branch from 6530762 to 34e9355 Compare December 5, 2026 13:31
@tony
tony changed the base branch from master to fix/122-strided-buffers December 5, 2026 13:31
tony added 3 commits December 5, 2026 07:38
why: A live row can retain stale indices after its screen width changes.

what:
- Use current bounds for live row length, indexing and rendering.
- Clip selected columns for retained slices.
- Cover shrink, growth, and independently frozen rows.

Fixes #100
why: A caller can keep a live row or a slice while the screen changes
     width.

what:
- Explain current live-row bounds and the captured bounds of frozen
  rows.
why: A second crop should use its parent's coordinates after a resize.

what:
- Share two-axis indexing across screens, snapshots, and regions.
- Clip live regions to retained rows and preserve captured extents.
- Expose row extents, source row, and screen/snapshot read properties.
- Serialize and blit through the read model instead of private fields.
- Document nested cropping and cover live and frozen regions in tests.
@tony
tony force-pushed the fix/122-strided-buffers branch from 0867cea to fec8aca Compare December 5, 2026 13:39
@tony
tony force-pushed the fix/100-retained-live-row branch from 34e9355 to 47fcaac Compare December 5, 2026 13:39
@tony
tony changed the base branch from fix/122-strided-buffers to master December 5, 2026 13:44
@tony
tony merged commit 1443670 into master Dec 5, 2026
18 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/100-retained-live-row branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — 47fcaac4 Deployed Dec 5, 2026 by tony via build (3.14) #420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep a retained live row indexable after a width change

1 participant