set_hook
Source and package
- Qualified name
-
LibTmux. set _hook - Module
- LibTmux
- Package
- LibTmux
- Source
- src/configuration.jl
- set_hook( connection::Lib
Tmux , scope, name::Abstract.Control Connection String , command::AbstractString ; index, kwargs..., )set_hook( server::LibTmux , scope, name::Abstract.Server String , command::AbstractString ; index, kwargs..., ) -
Methods
set_hook( connection::Lib
Tmux , scope, name::Abstract.Control Connection String , command::AbstractString ; index, kwargs..., )[source]Store tmux command grammar using literal unquoted command names and printable arguments, single/double quotes, literal punctuation escapes and semicolon sequences. Environment/tilde expansion, comments, command blocks and decoded control escapes are refused before writing. Single quotes preserve literal backslash and dollar text. This is a deliberately bounded storage grammar; commands must also obey the connection's trusted hook contract when executed.
set_hook(connection::ControlConnection, scope, name, command; index=nothing, kwargs...)Without
index, replace the whole array; an empty body masks inherited hooks. An indexed empty body is invalid. tmux may clear a whole array before reporting a command parse error. ReturnControlResultwithout rollback or replay.set_hook( server::Lib
Tmux , scope, name::Abstract.Server String , command::AbstractString ; index, kwargs..., )[source]Store executable tmux command grammar; this is not a shell command or literal option value. tmux parses the body when stored and executes it when the hook fires. Without
index, replace the whole command array; an empty body clears it and masks inherited hooks. A numeric index changes only that sparse entry. ReturnCommandResult; parsing failures retain tmux's command error evidence. tmux may clear an existing whole array before reporting a parse failure. The library does not roll back or retry this mutation.set_hook(server, scope, name, command; index=nothing, kwargs...)
Recorded calls
source callsThe Julia reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.set_hook.
tmux command
task materialThe tmux commands behind set_hook.
set-hook show-options (on a Server) tmux C API
task materialThe C declarations in tmux that implement these commands.
Guides
task materialPages that discuss set_hook.