Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux latest

HooksMixin.run_hook

Run a hook immediately. Useful for testing.

Source and package
Qualified name
libtmux.hooks.HooksMixin.run_hook
Module
libtmux.hooks
Declared in
HooksMixin
Package
libtmux
Source
src/libtmux/hooks.py
run_hook ( self, hook: str, global_: bool | None = None, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE, ) → Self

tmux command#

The tmux commands behind run_hook.

tmux C API#

The C declarations in tmux that implement these commands.

tmux hooks#

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

Esc

Type to search.

Reference previewOpen reference