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

Rust API

Rust documentation

server.Server.typed_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/keys.rs
typed_key_bindings ( self , table : Option<&str> ) → Result<Vec<KeyBinding>, Error>
method [source]
method [source]
typed_key_bindings

List key bindings as fields: table, key, command, note and repeat.

table narrows the listing to one key table. A table with no bindings lists empty, since tmux keeps no empty table to refuse.

Every table is fetched and the narrowing done here. tmux 3.7 through 3.7c send a listing of exactly one binding to the message log instead of printing it, so list-keys -T on a table holding one binding answers with nothing. Across every table, that happens only on a server with a single binding left, which lists none on those releases.

Errors

Returns Error::UnsupportedCapability below tmux 3.7, which has no list-keys -F; Self::key_bindings reads the bind-key lines those releases print. Returns Error::DecodeListing when a row does not decode, and an error when tmux cannot be reached or refuses the listing.

0 declared, 0 inherited

Esc

Type to search.