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
{{ message }}
Repository navigation
Add a typed list of tmux hooks (options-table.c) #161
Hooks takes the event name as a String, and libtmux holds no list of tmux's hooks. Which hooks exist, and which scope each belongs to, is known only to tmux.
Motivation
tmux rejects an unknown hook name with invalid option, but accepts a known hook set at a scope it does not belong to and then discards it. The Hooks Javadoc says so: pane-focus-in is a window hook, alert-bell is a session hook, and the wrong scope is "accepted and then silently discarded, on every supported release". A caller finds out when the hook never fires, because the library has no list to check the scope against.
The set of hooks grows by release. The tmux 3.8 CHANGES adds hooks for client create and destroy, pane activity, pane mode and prompt changes, pane movement and resizing, session group changes, and window creation, close, swap and zoom.
Activity