Repository navigation
Run Lua examples for navigating, moving and laying out tmux windows - #182
Merged
Merged
Conversation
This was referenced Dec 5, 2026
tony
force-pushed
the
vote-counter-demo
branch
from
December 6, 2026 02:38
5353a14 to
c48d1e5
Compare
why: Readers need a complete program they can run to see how a tmux session links to a window and its pane. what: - Follow the session’s window link in a snapshot. - Run move-window and select-layout in separate examples and check the expected output of all three programs.
tony
force-pushed
the
vote-counter-demo
branch
from
December 6, 2026 14:23
c48d1e5 to
d7f3165
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Run these Lua examples with tmux 3.3a or newer on
PATH. They follow a session’s window link to a pane, move a window, and change a window’s layout. Build the checkout rock and installluvfirst. Example setup.The example manifest records the output the installed package check expects.
Test plan
TMUX_BINunset on Lua 5.1.5 with tmux 3.3a and Lua 5.5.1 with tmux 3.8. Each printed its expected line and cleaned up its private server.luajit scripts/support/run_tests.lua scripts/docs/tests/test_api_examples.lua.Hosted checks.
Related to #84.
Selecting tmux
The window examples use tmux from
PATH. SetTMUX_BINto an absolute executable path to select a different build. Runtime PATH support.