libtmux.hooks.HooksMixin.show_hooks
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- libtmux.hooks
- Declared in
- HooksMixin
- Package
- libtmux
- Source
- src/libtmux/hooks.py
- show_hooks ( self , global_ : bool | None = False , scope : OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE ) HookDict
-
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 hooksTrue>>> 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