tmux_hook:set/3
Replace one {Name, Index} entry with validated command values. An explicit index is required; other entries remain. Indexes range from zero to 2147483647. The rendered command text is bounded before dispatch. Native commands still interpret their arguments and formats when the hook later runs. Use append/3 for native vacant-index selection and clear/2 to mask inherited hooks with an empty local array.
Source and package
- Qualified name
-
tmux_hook: set/3 - Declared in
tmux_hook- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_hook.erl
- set(Scope, Key, Commands) -spec set(scope(), {binary(), non
_neg ()}, commands()) -> {ok, tmux_integer _operation: ()} | {error, tmuxcompleted _operation: ()}.failure -
Description#
Performs I/O. tmux parses commands before replacing an existing entry, but a failed first write can already create an empty local override. Registration and later execution are separate; this call promises no transaction, rollback or completion of future effects.
tmux command#
The tmux commands behind set/3.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss set/3.