Skip to content

docs(tmux): Compare pane and client screens - #141

Merged
tony merged 1 commit into
masterfrom
concept/tmux-which-screen
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
concept/tmux-which-screen

Conversation

@tony

@tony tony commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Add docs/topics/tmux-screens.md and examples/tmux_screens.py comparing application pane captures, composited layouts, control streams, and attached-client copy-mode views, plus pane-local click translation and explicit focus verification after resize.

  • Demonstrates live application grid vs attached-client copy mode (and capture-pane -M with #{scroll_position} range on tmux >= 3.6 where supported).
  • Demonstrates pane-local click translation (--stale-origin), non-auto-focusing click policies (--no-focus-on-click with explicit select-pane transfer), and a cross-platform MouseEvent doctest.
  • Adds isolated integration tests (using new_tmux_socket_name() -L probe sockets) and full-pipe command cancellation reaping tests in tests/test_tmux.py, and links from docs/topics/index.md, README.md, and CHANGES.

Fixes #95
Fixes #96

@tony
tony force-pushed the concept/tmux-which-screen branch from a61078e to b1ba579 Compare December 1, 2026 03:31
tony added a commit that referenced this pull request Dec 3, 2026
why: Record the branch's user-visible change in the unreleased notes.

what:
- Add the #141 entry to the Documentation section of CHANGES
@tony
tony force-pushed the concept/tmux-which-screen branch from e93e552 to 40d1006 Compare December 3, 2026 23:58
@tony
tony force-pushed the concept/tmux-which-screen branch from 40d1006 to 7ddb1d7 Compare December 5, 2026 14:53
@tony
tony force-pushed the concept/tmux-which-screen branch from 7ddb1d7 to 53326c4 Compare December 5, 2026 15:06
@tony
tony force-pushed the concept/tmux-which-screen branch from 53326c4 to 17eea55 Compare December 5, 2026 15:37
why: Tests targeting tmux need to distinguish application pane grids
from the rendered attached-client viewport (copy mode, selection,
borders, status line) and translate pane-local clicks and focus checks
after a resize.

what:
- Add docs/topics/tmux-screens.md with a screen-layer guide, copy-mode
  and -M capture comparison, cross-platform MouseEvent doctest, and
  explicit non-auto-focusing click guidance.
- Add examples/tmux_screens.py with race-free delimited receipts,
  verified -M divergence behind copy mode, --stale-origin, and
  --no-focus-on-click modes.
- Add isolated integration and pipe-reap tests in tests/test_tmux.py,
  and update docs/topics/index.md, README.md, and CHANGES.

Fixes #95
Fixes #96
@tony
tony marked this pull request as ready for review December 5, 2026 17:53
@tony
tony force-pushed the concept/tmux-which-screen branch from 17eea55 to 71dfae8 Compare December 5, 2026 17:53
@tony tony changed the title Concept: Show which tmux screen a test observes docs(tmux): Compare pane and client screens Dec 5, 2026
@tony
tony merged commit cd0c658 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the concept/tmux-which-screen branch December 5, 2026 17:57
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

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

Document the pane grid and the viewport shown in tmux copy mode Document pane-relative clicks and keyboard focus after a click

1 participant