list-keybinds command displays all keybindings for Ghostty, either from your configuration or the default keybindings.
Usage
Description
When executed without arguments, this command lists the current keybindings loaded from your config file. If no config file is found or there are no keybinding changes, it displays the default Ghostty keybindings. When output to a TTY, the command provides formatted, colorized output. When piped to another command or when--plain is specified, it outputs in a format suitable for Unix tooling.
Options
Print the default keybindings instead of loading from the config file. Useful for seeing what the base keybindings are before customization.
Print documentation about the action associated with each keybinding.
This option is currently not fully implemented and may not display additional information.
Disable formatting and colorization even when outputting to a TTY. Makes the output more friendly for Unix tooling like grep, awk, etc.
Display help information for this command.
Output Format
The formatted output (TTY mode) displays keybindings with:- Color-coded modifiers (Super, Ctrl, Alt, Shift)
- Chord sequences shown with
>separator - Key tables prefixed before the keybinding
- Actions with arguments highlighted differently
- Sorted by binding complexity (chords, modifiers, tables)
Examples
Display Current Keybindings
Display Default Keybindings
Plain Output for Scripting
Find Specific Keybinding
Display with Documentation
Count Total Keybindings
Understanding the Output
Chord Sequences
When you see> between keys, it indicates a chord (leader key sequence):
super+k, release, then press super+n to trigger the action.
Key Tables
Key tables are prefixed before the binding:vi-normal key table is active.
Modifiers
Modifiers are shown in order:super, ctrl, alt, shift
Notes
The keybinding display order prioritizes more complex bindings first: longer chords, more modifiers, then alphabetically by modifier and key.
Bindings in key tables are grouped together at the end of the output, sorted by table name.
See Also
- list-actions - List all available actions for keybindings
- Keybinding Configuration
- show-config