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-ts latest

Window.showHooks

Read hooks set on this window itself.

Source and package
Qualified name
Window.showHooks
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir PythonRubyLua Rust GoJavaC# C++ Swift Kotlin Scala F#
showHooks(): Promise< ReadonlyMap<string, readonly string[]> >

Examples#

const hooks = await window.showHooks();
hooks.get("window-renamed")?.[0];

tmux command#

The tmux commands behind showHooks.

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.

In other ports#

Read a window's hooks

Equivalents of Read a window's hooks in other languages
Language Equivalent
Python libtmux.Window.show_hooks
Ruby LibTmux::Window#hooks
Lua libtmux.Window:list_hooks
Rust no whole-table read; Window.hook reads one
Go tmux.Window.Hooks
Java io.github.libtmux.Window.hooks
C# LibTmux.Window.Hooks
C++ no equivalent on Window
Swift Server.hooks(_:)

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference