Skip to content

Distinguish omitted tmux paste and tab metadata - #170

Merged
tony merged 2 commits into
masterfrom
fix/79-capture-metadata-presence
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/79-capture-metadata-presence

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #79
Closes #103

What changed, and why:

A capture preserves a known empty tab ruler and identifies an unreported paste mode as unknown. Stored tabs carry a fidelity mark because tmux exposes the current stops and omits the historical tab width.

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 #170
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:41
@tony
tony force-pushed the fix/79-capture-metadata-presence branch from bb2c5c7 to c87aa7f Compare December 3, 2026 23:58
tony added a commit to tmux-python/libtmux that referenced this pull request Dec 4, 2026
why: The picker needs to distinguish an omitted tmux bracketed-paste
flag from a reported disabled state.

what:
- Pin libvt/libvt-python#170 in the uv source and lockfile.
tony added 2 commits December 5, 2026 07:48
why: Missing paste and tab metadata differ from known disabled values.

what:
- Represent unknown paste mode and cleared rulers separately.
- Mark stored-tab expansions as uncertain.
- Document how to handle missing metadata after capture.

Fixes #79
Fixes #103
why: An omitted paste flag does not establish that paste mode is off.
     Stored tabs can outlive their original ruler.

what:
- Document unknown paste mode, cleared stops and uncertain stored
  widths.
@tony
tony force-pushed the fix/79-capture-metadata-presence branch from c87aa7f to f77a4ee Compare December 5, 2026 13:49
@tony
tony changed the base branch from master to fix/99-recorder-byte-bound December 5, 2026 13:49
@tony
tony changed the base branch from fix/99-recorder-byte-bound to master December 5, 2026 13:52
@tony
tony merged commit c8d4772 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/79-capture-metadata-presence branch December 5, 2026 20:41

This branch was successfully deployed

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

Mark unreported tmux paste mode as unknown on late attach A tmux capture can move text or restore cleared tab stops

1 participant