Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function LibTmux.jl latest

get_hook

Module LibTmux.get_hook LibTmux
Source and package
Module
LibTmux
Package
LibTmux
Source
src/configuration.jl

Methods#

get_hook( connection::LibTmux.ControlConnection, scope, name::AbstractString; inherit, kwargs... )[source]#

Read the complete sparse hook array in tmux order without executing it. Return nothing for no local override, or an empty vector for a local empty array. Inherited entries carry inherited=true. Canonical command bodies and scope semantics follow the subprocess method; named replies and explicit parent lookups avoid raw broad listings and preserve empty-array masking.

get_hook(connection::ControlConnection, scope, name; inherit=false, kwargs...)

get_hook(server::LibTmux.Server, scope, name::AbstractString; inherit, kwargs...)[source]#

Return sparse HookCommand entries in tmux order. nothing means no local override; an empty vector means an explicitly empty command array. With inherit=true, include inherited hooks. Scopes follow get_option , excluding :server; only built-in hooks supported by the connected tmux are accepted. Command bodies use tmux's canonical executable grammar, not the original quoting or whitespace. This read does not execute the returned commands.

get_hook(server, scope, name; inherit=false, kwargs...)
Esc

Type to search.

Reference preview Open reference