libtmux Reference MCP Search
On this page

libtmux.Server.list_keys

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
list_keys ( self , key_table : str | None = None , format_ : str | None = None ) list[str]
method [source]
method [source]
list_keys

List key bindings via $ tmux list-keys.

Examples

>>> result = server.list_keys()
>>> isinstance(result, list)
True
Parameters
  • key_table ( str | None ) – Filter by key table (-T flag).

  • format_ ( str | None ) – Custom output format applied to each line (-F flag). Requires tmux 3.7+; warns and is ignored on older tmux.

Returns

list[str] Key binding lines.

0 declared, 0 inherited

Esc

Type to search.