Pane.show_hooks
Return a dict of hooks for the target.
Source and package
-
Inherited from
libtmux.hooks.HooksMixinExamples#
>>> session.set_hook('session-renamed[0]', 'display-message "test"')Session($...)>>> hooks = session.show_hooks()>>> isinstance(hooks, dict)True>>> 'session-renamed[0]' in hooksTrue>>> session.unset_hook('session-renamed')Session($...)- Parameters
-
-
global_(bool | None) # – Pass-gflag for global hooks, default False. -
scope(OptionScope | _DefaultOption | None) # – Hook scope (Server/Session/Window/Pane), defaults to object's scope.Scope
-
- Returns
-
HookDict Dictionary mapping hook names to their values.
tmux catalog Hooks
Discussed in Options and hooks
In other ports Read a pane's hooks
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby
- Lua
- TypeScript
- Rust no whole-table read;
Pane.hookreads one - Go
- Java
- C#
- C++ no equivalent on
Pane - Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.