Skip to content

Expose the option and hook definitions from tmux 3.8 - #191

Merged
tony merged 3 commits into
masterfrom
feat-109-110-option-hook-catalog
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
feat-109-110-option-hook-catalog

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #109
Closes #110

What changed, and why:

Callers lacked a typed inventory of built-in options and hooks, including names, scopes, types and valid values. Both inventories come from the same tmux release. Generate one packaged catalog from the pinned tmux 3.8 source and expose immutable definitions through OptionCatalog. Keep catalog metadata separate from live option values and hooks present on a particular server.

Checks run:

  • The original tmux 3.3a matrix cell was incomplete because the catalog comparison skipped. The test now checks a real option and hook at the floor and compares the entire catalog on 3.8. On the merged pane-wait and terminal-program code, both cells passed 370 unit, 342 integration and eight installed-gem tests with zero skips.
  • The generator verified its two checksummed upstream inputs and regenerated 183 options and 89 hooks. Parser fixtures exercise numeric bounds, choices and hook macros. Native checks compared the installed catalog with actual tmux inventories.
  • The focused check passed on tmux 3.8 (1 run, 15 assertions). On Linux with Ruby 4.0.7 and tmux 3.8, the unit and lint checks passed in 26.26 s. The full outer check passed in 115.88 s, including installed gems and documentation, with zero skips.

Tool use:

Codex traced the caller and owner, checked the previous behavior and ran the Linux tests.

@tony
tony force-pushed the feat-109-110-option-hook-catalog branch from 21cf0a5 to 42ba50b Compare December 5, 2026 10:34
@tony
tony marked this pull request as ready for review December 5, 2026 10:42
@tony
tony force-pushed the feat-109-110-option-hook-catalog branch from 42ba50b to 58f382b Compare December 5, 2026 11:20
tony added 3 commits December 5, 2026 05:52
why:
Options and hooks come from the same upstream table. A shared generator
gives both inventories a verifiable release and avoids manually copying
their bounds or scopes.

what:
Read the checksummed tmux 3.8 option table and header. Generate the
option and hook definitions and verify the input and output with small
parser fixtures.
why:
Callers lacked a typed inventory of built-in options and hooks,
including names, scopes, types and valid values. Both inventories come
from the same tmux release.

what:
Generate one packaged catalog from the pinned tmux 3.8 source and expose
immutable definitions through OptionCatalog. Keep catalog metadata
separate from live option values and hooks present on a particular
server.
why:
Readers need to find the change in the unreleased notes.

what:
OptionCatalog exposes the built-in option and hook definitions from tmux
3.8, including option types, ranges, choices and scopes.
@tony
tony force-pushed the feat-109-110-option-hook-catalog branch from 58f382b to 7b782d7 Compare December 5, 2026 11:57
@tony
tony merged commit 16688af into master Dec 5, 2026
12 checks passed
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.

Add a typed list of tmux hooks (options-table.c) Add a typed list of tmux options (options-table.c)

1 participant