You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a standalone, CI-run example program for each core capability #84
The docs site's Core API showcase (libtmux/docs#243) shows, per capability, a complete example program next to a list of capabilities. It shows a capability for a port only when that port has a program that qualifies, so today this port shows few or none:
Navigate tmux via a typed object graph
Watch for changes
Send keys
Run applications (where the port has a run-to-exit API)
Rename windows
Create windows
Move windows
Set layouts
Motivation
A reader copies the example, so it has to build and run as shown, and its CI run has to prove it. Excerpts of larger files and test helpers do not qualify.
Current state: Not yet audited against the rule below. The read-only audit of 2026-11-01 lists this port's APIs and examples per capability; each candidate needs checking against the rule.
Proposal
For each capability the library supports, add one small program under the repository's examples that:
is a whole file with its imports or use lines, its entry point and its own server setup on a private socket, and no helper defined elsewhere in the repository;
does one capability and prints or asserts its outcome, for example the captured line after sending keys, or the new window's name after a rename;
runs in CI on a supported tmux, failing on a non-zero exit or a missing expected line, and states its tmux floor where the capability needs one;
stays under about 150 lines.
The docs site reads each program whole at the pinned revision; a program it cannot verify is left out rather than excerpted.
Activity