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

window.Window.showHooks

TypeScript

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.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 window itself.

In other ports Read a window's hooks

Examples

const hooks = await window.showHooks();
hooks.get("window-renamed")?.[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.