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
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server/keys.rs
-
List key bindings as fields: table, key, command, note and repeat.
tablenarrows 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 -Ton 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::UnsupportedCapabilitybelow tmux 3.7, which has nolist-keys -F;Self::key_bindingsreads thebind-keylines those releases print. ReturnsError::DecodeListingwhen a row does not decode, and an error when tmux cannot be reached or refuses the listing.
0 declared, 0 inherited