keymap.toml file defines all keybindings in Yazi. You can customize existing keybindings or add new ones.
File Location
- Unix-like systems:
~/.config/yazi/keymap.toml - Windows:
%AppData%\yazi\config\keymap.toml
Keymap Structure
The keymap file is organized by UI layer. Each layer represents a different part of the interface:Keymap Entry Format
Each keybinding is defined as a table in an array:Fields
string | array
required
The key(s) to bind. Can be a single key or an array for key sequences.Examples:
"j"- Single key"<C-c>"- Control+C["g", "g"]- Key sequence: press ‘g’ twice
string | array
required
The command(s) to execute. Can be a single command or array of commands.Examples:
"arrow next"- Single command["toggle", "arrow 1"]- Multiple commands
string
Description shown in help menu and which-key popup
Key Syntax
Basic Keys
Alphanumeric and symbol keys:Special Keys
Special keys use angle brackets:Modifiers
Modifiers are specified with angle brackets:<C->= Control/Ctrl<A->= Alt/Option/Meta<S->= Shift