window.Window.setHook
- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- packages/libtmux/src/window.ts
- Other languages
- Python Ruby LuaRustGo Java .NET C++ Swift
- setHook ( name : : string , command : : string , options : : SetHookOptions ) Promise<void>
-
Bind a tmux command to a window-scoped hook.
Examples
await window.setHook("window-renamed", "display-message 'renamed'");In other ports Bind a command to a window hook
- Python
libtmux.Window.set_hook - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.Window:set_hook - Rust
window.Window.set_hook - Go
tmux.Window.SetHook - Java reached through
Window.hooks, whoseHookscarries the write - .NET reached through
Window.Hooks, whoseTmuxHookscarries the write - C++ no equivalent on
Window - Swift
Server.setHook(_:to:at:in:)
- Python
0 declared, 0 inherited