Server.typed_key_bindings
List key bindings as fields: table, key, command, note and repeat.
Source and package
- Qualified name
-
libtmux::server:: Server:: typed _key _bindings - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server/keys.rs
-
Description#
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_bindings()reads thebind-keylines those releases print. ReturnsError::DecodeListingwhen a row does not decode, and an error when tmux cannot be reached or refuses the listing.
tmux command#
The tmux commands behind typed_key_bindings.
tmux C API#
The C declarations in tmux that implement these commands.