Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

Python API

method libtmux stable

Pane.set_hook

Set hook for tmux target.

Source and package
Qualified name
libtmux.Pane.set_hook
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/hooks.py
Other languages
PowerShell Julia Ruby LuaTypeScriptRustGo Java C# C++ Swift Kotlin Scala F#
set_hook ( self, hook: str, value: int | str, unset: bool | None = None, run: bool | None = None, append: bool | None = None, g: bool | None = None, global_: bool | None = None, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE, ) → Self

Inherited from libtmux.hooks.HooksMixin

Description#

Wraps $ tmux set-hook <hook> <value>.

tmux catalog Hooks

Discussed in Options and hooks

In other ports Bind a command to a pane hook
  • PowerShell
    No source-verified PowerShell equivalent is recorded for this operation.
  • Julia
    No source-verified Julia equivalent is recorded for this operation.
  • Ruby
    No source-verified Ruby equivalent is recorded for this operation.
  • Lua
  • TypeScript
  • Rust
  • Go
  • Java
    reached through Pane.hooks, whose Hooks carries the write
  • C#
    reached through Pane.Hooks, whose TmuxHooks carries the write
  • C++
    no equivalent on Pane
  • Swift
  • Kotlin
    No source-verified Kotlin equivalent is recorded for this operation.
  • Scala
    No source-verified Scala equivalent is recorded for this operation.
  • F#
    No source-verified F# equivalent is recorded for this operation.
Esc

Type to search.

Reference preview Open reference