Skip to main content
The 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:
Or more concisely:

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

Key Sequences

Define multi-key sequences with arrays:

Manager Layer [mgr]

The main file manager keybindings.

Selection

File Operations

Opening Files

Search and Filter

Sorting

Input Layer [input]

Input dialog keybindings (for rename, create, etc.).

Tasks Layer [tasks]

Task manager keybindings.

Confirm Layer [confirm]

Confirmation dialog keybindings.

Complete Example

Tips

Override Default Keybindings

You don’t need to copy all default keybindings. Just specify the ones you want to change:

Multiple Commands

Execute multiple commands in sequence:

Command Arguments

Many commands accept arguments:

See Also