Skip to content

Preserve erased backgrounds in tmux captures - #171

Merged
tony merged 2 commits into
masterfrom
fix/80-capture-erased-background
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/80-capture-erased-background

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #80

What changed, and why:

On tmux 3.4 and later, capture bundles pair trimmed rows with untrimmed cell styles. They retain erased background colors and explicitly written spaces. Generate and parse capture bundles with the same capture command to include the companion sections.

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 #171
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:42
@tony
tony force-pushed the fix/80-capture-erased-background branch from d39f4b9 to b123495 Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:48
why: A trimmed capture omits styled blank cells near row ends.

what:
- Pair trimmed occupancy with untrimmed visible cell styles.
- Preserve erased backgrounds in history and saved primary rows.
- Report missing or mismatched companion data as inexact.

Fixes #80
why: Trailing color and printed spaces can disappear from a trimmed tmux
     capture.

what:
- Document the bundle update and how missing rows affect capture
  fidelity.
@tony
tony force-pushed the fix/80-capture-erased-background branch from b123495 to f8a4c19 Compare December 5, 2026 13:49
@tony
tony changed the base branch from master to fix/79-capture-metadata-presence December 5, 2026 13:49
@tony
tony changed the base branch from fix/79-capture-metadata-presence to master December 5, 2026 13:53
@tony
tony merged commit 9524456 into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/80-capture-erased-background branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — f8a4c19a Deployed Dec 5, 2026 by tony via build (3.14) #439
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.

An erased background disappears from an exact tmux capture

1 participant