On this page
libtmux.Window.show_hooks
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/hooks.py
- show_hooks ( self , global_ : bool | None = False , scope : OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE ) HookDict
-
Inherited from
libtmux.hooks.HooksMixinReturn a dict of hooks for the target.
Examples
>>> session.set_hook('session-renamed[0]', 'display-message "test"') Session($...)>>> hooks = session.show_hooks() >>> isinstance(hooks, dict) True>>> 'session-renamed[0]' in hooks True>>> session.unset_hook('session-renamed') Session($...)- Parameters
-
-
global_ ( bool | None ) – Pass
-gflag for global hooks, default False. -
scope ( OptionScope | _DefaultOptionScope | None ) – Hook scope (Server/Session/Window/Pane), defaults to object's scope.
-
- Returns
-
HookDict Dictionary mapping hook names to their values.
0 declared, 0 inherited