Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

pane.Pane.showHooks

TypeScript

View as Markdown

Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts
Other languages
PythonRubyLua Rust GoJava.NET C++ Swift
showHooks ( ) → Promise<ReadonlyMap<string, readonly string[]>>
method [source]
method [source]
showHooks

Read hooks set on this pane itself.

Discussed in Options and hooks

In other ports Read a pane's hooks

Examples

const hooks = await pane.showHooks();
hooks.get("pane-title-changed")?.[0];
>>> 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($...)

0 declared, 0 inherited

Esc

Type to search.