libtmux Reference MCP Search
On this page

libtmux.Window.show_hooks

View as Markdown

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
method [source]
method [source]
show_hooks

Inherited from libtmux.hooks.HooksMixin

Return 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
Returns

HookDict Dictionary mapping hook names to their values.

0 declared, 0 inherited

Esc

Type to search.