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
A Lua program cannot list the tmux hook names the library knows, per tmux release, without a running server or the generated reference page. The names exist in the private module libtmux._internal.options_catalog; no public call or type exposes them.
Motivation
Today a caller has two ways to see hook names. list_hooks on a server, session, window or pane handle reads show-options -H from a connected server, so it answers only for the release that server runs, and it omits custom @ hooks. The Hooks table in docs/options-reference.md lists every built-in hook per release, but only as text.
A program that offers hook names, or checks whether a hook exists on tmux 3.3a versus 3.8 before calling set_hook, has to copy that page by hand. The public signatures of get_hook and set_hook take name: string, and the libtmux.HookName alias that would let an editor offer names is used by no public signature.
Activity