Repository navigation
Description
Summary
The Core API tab on a language page, and the Core Library home, show one quickstart program under "Start with ". They should show what the core library does: a list of capabilities on the left and, on the right, a tested example of the one selected.
Motivation
Requested by the maintainer on 2026-11-01: "You should showcase what it is", with these capabilities:
- Navigate tmux via a typed object graph
- Watch for changes
- Send keys
- Run applications (tmux 3.8+, only in some ports such as TypeScript)
- Rename windows
- Create windows
- Move windows
- Set layouts
"The code examples MUST be tested and confirmed to work across ports. Only TS have a true 'run' that checks for exit codes."
Proposal
- One component, used on
/<port>/<version>/(Core API tab) and/<port>/<version>/core/. On the left, the capability list, as a searchable picker on narrow screens, reusing the site's existing picker. On the right, the selected example. The selection is kept in the URL. - An example is shown only when the port's CI executes it and the run fails on a non-zero exit or a missing expected line. Each entry records the file, the excerpt anchors, the CI workflow and job, the command, and the evidence that exit status is checked. A build-time test refuses an entry without that evidence.
- A capability a port lacks, or has no executed example for, is not offered for that port. Version-gated capabilities carry their tmux floor.
- Per port, add the missing example programs and an exit-checked runner modelled on the TypeScript harness, as port issues linked here.
References
- Show the MCP and Workspace landing tabs the way people use them #239 and Describe each port as a tmux client and add a Core Library home #240: the landing tabs and the Core Library home this builds on.
Lua showcase
A local build rendered all eight Lua programs on both Core and landing pages and ran the copied programs against an installed rock. The public website PR starts with four programs at a public source pin. The eight-program selection needs the reviewed native source and successful trunk CI before publication. Website PR · Native acceptance · Eight-program verification
Activity
tony commentedon Dec 5, 2026
I ran the Lua examples for all eight entries against the checkout that combines the navigation, calculator, and program changes. The Core page and the language landing page each showed all eight once. Each “copy” button returned the example as it appears in the Lua repository. The oldest supported tmux, 3.3a, can run seven. “Watch for changes” reads pane output through control mode and needs tmux 3.7 or newer.
Updating the example list exposed a problem for readers of older releases. The original Lua quickstart still appeared, but its links to
Server.new_session,Pane.split, andSession.new_windowdisappeared. Selecting the API links for the displayed example kept all three on both pages. The released catalog passed 53 checks. The eight-example build passed 455 checks across five website suites.The four-example change in #388 already preserves those links. The eight-example update needs the Lua commit that contains the new programs and the passing CI run on that commit. The relevant Lua changes are navigation and layouts, the calculator, and running a program and reading its exit code.