Skip to main content

Configuration Reference

Manager Section ([manager])

[manager]
ratio = [ 1, 3, 4 ] # [parent, current, preview] width ratios
sort_by = "natural" # Sorting: "alphabetical", "natural", "mtime", "btime", "size", "random"
sort_dir_first = true # Directories before files
linemode = "none" # Display: "none", "size", "mtime", "btime", "permissions", "owner", "symlink"
show_hidden = false # Show dotfiles
scrolloff = 5 # Scroll offset from edges

ratio

Defines the relative widths of the three panels (parent, current, preview). Example ratios:

ConfigParentCurrentPreview
[1, 3, 4]12.5%37.5%50%
[1, 2, 3]16.7%33.3%50%
[2, 3, 4]22.2%33.3%44.5%

sort_by

ValueSorts By
"alphabetical"Lexicographic order (a < A < b)
"natural"Human-friendly (a1, a2, a10)
"mtime"Modification time (newest first)
"btime"Birth/creation time
"size"File size
"random"Random order

linemode

ValueShows
"none"Filename only
"size"File size
"mtime"Modification time
"btime"Birth time
"permissions"Unix permissions
"owner"File owner
"symlink"Symlink target

Preview Section ([preview])

KeyDefaultDescription
imagestrueEnable image preview
max_width600Max preview image width in px
max_height900Max preview image height in px
preload_workers4Background preload threads
max_file_size"10M"Max file size for text preview

Tasks Section ([tasks])

KeyDefaultDescription
micro_workers4Workers for small file operations
macro_workers2Workers for large file operations
boundedtrueLimit concurrent system operations

Opener Section ([opener])

[opener]
edit = [
{ run = "vim \"$@\"", block = true, desc = "Edit in vim" },
]
FieldDescription
runShell command to execute
blockBlock Yazi UI until command completes
descHuman-readable description
orphanDetach from Yazi process
forPlatform filter: "unix", "windows", "macos"