Skip to content

Add a public typed list of tmux hooks #101

Open

Description

@tony

Summary

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.

References

Activity

  1. added
    enhancement
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions