HooksMixin.show_hook
Return value for a hook.
Source and package
- Qualified name
-
libtmux.hooks .Hooks Mixin. show _hook - Module
- libtmux.hooks
- Declared in
HooksMixin- Package
- libtmux
- Source
- src/libtmux/hooks.py
- show_hook ( self, hook: str, global_: bool = False, scope: Option
Scope | _DefaultOption | None = DEFAULT_OPTION_SCOPE, ) str | int | SparseScope Array [str] | None -
Description
For array hooks (e.g.,
session-renamed), returns aSparseArraywith hook values at their original indices. Use.keys()for indices and.values()for values.- Parameters
-
-
Default
False -
scope(OptionScope | _DefaultOption | None)Scope Default
DEFAULT_OPTION_SCOPE
- Returns
-
str | int | SparseArray[str] | None Hook value. For array hooks, returns SparseArray.
- Raises
Same owner
containment 1 of 11 shownOther members of libtmux.hooks.HooksMixin whose names share show_hook. They sit on the same type; that does not make them behave alike.
Recorded calls
source callsThe Python 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.hooks.HooksMixin.show_hook.
tmux command
task materialThe tmux commands behind show_hook.
tmux C API
task materialThe C declarations in tmux that implement these commands.
tmux hooks
task materialEvents that run tmux commands, with the scope each hook belongs to and where tmux fires it.