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

Rust API

Rust documentation

server.Server.key_bindings

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
key_bindings ( self , table : Option<&str> ) → Result<Vec<String>, Error>
method [source]
method [source]
key_bindings

List key bindings as tmux prints them.

Each line is a complete bind-key command in tmux's own quoting, which this crate deliberately does not re-parse: the same value is rendered bare, double quoted, or single quoted depending on content, and a table name is printed bare, spaces and all. Self::typed_key_bindings reads the same bindings as fields on tmux 3.7 and later.

On tmux 3.7 through 3.7c, a table holding exactly one binding lists empty: those releases send a one-line listing to the message log.

Errors

Returns an error when tmux refuses the listing.

0 declared, 0 inherited

Esc

Type to search.