pane.Pane.set_hook
Rust
- Python
- TypeScript
- Rust
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Module
- pane
- Declared in
- Pane
- Package
- libtmux
- Source
- crates/libtmux/src/pane/settings.rs
- Other languages
- PythonTypeScriptGo Java .NET C++ Swift
-
Set one hook to a tmux command.
Hooks live in the same option tables, so a hook is an array option and
Self::typed_optionreads it under an indexed name such asafter-new-window[0].Errors
Returns an error when tmux rejects the hook name or command.
Returns
crate::Error::OptionScopeMismatchwhen tmux keeps the option in another of its tables.Discussed in Options and hooks
In other ports Bind a command to a pane hook
- Python
libtmux.Pane.set_hook - TypeScript
pane.Pane.setHook - Go
tmux.Pane.SetHook - Java reached through
Pane.hooks, whoseHookscarries the write - .NET reached through
Pane.Hooks, whoseTmuxHookscarries the write - C++ no equivalent on
Pane - Swift
Server.setHook(_:to:at:in:)
- Python
0 declared, 0 inherited