yazi.toml file controls Yazi’s core functionality including the file manager, preview pane, file opening behavior, and background tasks.
File Location
- Unix-like systems:
~/.config/yazi/yazi.toml - Windows:
%AppData%\yazi\config\yazi.toml
Configuration Sections
[mgr] - Manager Settings
Controls the main file manager interface.array
default:"[1, 4, 3]"
Column width ratios
[parent, current, preview]. The values represent relative proportions.string
default:"alphabetical"
Default sort method. Options:
alphabetical, natural, size, mtime, btime, extension, randomboolean
default:"false"
Case-sensitive sorting when
trueboolean
default:"false"
Reverse sort order when
trueboolean
default:"true"
Show directories before files when
trueboolean
default:"false"
Transliterate special characters for sorting when
truestring
default:"alphabetical"
Fallback sort method when the primary sort produces equal values. Same options as
sort_by.string
default:"none"
Information to show in file list. Options:
none, size, permissions, mtime, btime, ownerShow hidden files by default when
trueboolean
default:"true"
Show symlink targets when
trueinteger
default:"5"
Number of lines to keep above/below cursor when scrolling
array
default:"[\"click\", \"scroll\"]"
Enabled mouse events. Options:
click, scroll, drag, dropExample
[preview] - Preview Settings
Controls the preview pane behavior.string
default:"no"
Line wrapping behavior. Options:
no, wrapinteger
default:"2"
Number of spaces for tab characters in text preview
integer
default:"600"
Maximum preview width in pixels for image scaling
integer
default:"900"
Maximum preview height in pixels for image scaling
string
default:""
Directory for preview cache. Empty string uses system cache directory.
integer
default:"30"
Delay in milliseconds before loading image preview (0-100)
string
default:"triangle"
Image scaling filter. Options:
nearest, triangle, catmull-rom, gaussian, lanczos3integer
default:"75"
JPEG quality for cached images (50-90)
float
default:"1"
Scale factor for Ueberzug image protocol
array
default:"[0, 0, 0, 0]"
Offset
[x, y, width, height] for Ueberzug imagesExample
[opener] - External Programs
Defines external programs for opening files.array
Array of opener definitions. Each opener has:
run- Command to execute (use%sfor selected files)desc- Description shown in pickerfor- Platform filter:unix,linux,macos,windows,androidblock- Block terminal until command finishes (optional)orphan- Detach from terminal (optional)
Example
[open] - File Opening Rules
Defines which openers to use for different file types.array
Array of rules matching files to openers. Each rule has:
url- URL pattern (e.g.,*/,*.txt)mime- MIME type pattern (e.g.,image/*,text/plain)use- Array of opener names or single opener name
Example
[tasks] - Task System
Controls background task processing.integer
default:"3"
Number of worker threads for file operations (min: 1)
integer
default:"5"
Number of worker threads for plugin operations (min: 1)
integer
default:"5"
Number of worker threads for fetching operations (min: 1)
integer
default:"2"
Number of worker threads for preloading (min: 1)
integer
default:"5"
Number of worker threads for process operations (min: 1)
integer
default:"3"
Number of retries for failed bizarre tasks (min: 1)
integer
default:"536870912"
Memory allocation limit for images in bytes (default: 512MB)
array
default:"[10000, 10000]"
Maximum image dimensions
[width, height] in pixelsboolean
default:"false"
Suppress preload operations when
trueExample
[plugin] - Plugin Configuration
Configures plugin behavior for file type detection, preview, and more.Fetchers
Fetchers
Plugins that fetch file metadata:
id- Plugin identifierurl- URL pattern to matchrun- Plugin function to executeprio- Priority:high,normal,low
Spotters
Spotters
Plugins that generate file details:Can also match by MIME type:
Preloaders
Preloaders
Plugins that preload file data:
Previewers
Previewers
Plugins that generate file previews:
[input] - Input Dialog
Controls input dialog appearance and position.boolean
default:"false"
Enable cursor blinking when
truestring
default:"Change directory:"
Title for the change directory dialog
string
default:"top-center"
Dialog origin position. Options:
center, top-left, top-center, top-right, bottom-left, bottom-center, bottom-right, hoveredarray
default:"[0, 2, 50, 3]"
Dialog offset
[x, y, width, height]create_*, rename_*, filter_*, find_*, search_*, shell_*
[confirm] - Confirmation Dialog
Controls confirmation dialog appearance.string
default:"Trash {n} selected file{s}?"
Title for trash confirmation. Use
{n} for count, {s} for plural.string
default:"center"
Dialog origin position
array
default:"[0, 0, 70, 20]"
Dialog offset
[x, y, width, height]delete_*, overwrite_*, quit_*
[pick] - Picker Dialog
Controls the file opener picker.string
default:"Open with:"
Title for the opener picker
string
default:"hovered"
Dialog origin position
array
default:"[0, 1, 50, 7]"
Dialog offset
[x, y, width, height][which] - Which-Key Popup
Controls the which-key popup that shows available keybindings.string
default:"none"
Sort method for keybindings. Options:
none, alphabeticalboolean
default:"false"
Case-sensitive sorting when
trueboolean
default:"false"
Reverse sort order when
trueboolean
default:"false"
Transliterate special characters for sorting when
true