2024-01-13 18:19:40 +03:00
|
|
|
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
2024-01-12 15:15:36 +03:00
|
|
|
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
|
|
|
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
|
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
[manager]
|
2023-12-30 18:41:41 +03:00
|
|
|
ratio = [ 1, 4, 3 ]
|
2024-02-06 03:35:50 +03:00
|
|
|
sort_by = "alphabetical"
|
|
|
|
sort_sensitive = false
|
|
|
|
sort_reverse = false
|
2024-04-07 14:28:09 +03:00
|
|
|
sort_dir_first = true
|
2023-10-20 04:10:07 +03:00
|
|
|
linemode = "none"
|
2023-08-12 18:08:39 +03:00
|
|
|
show_hidden = false
|
2023-08-17 09:58:46 +03:00
|
|
|
show_symlink = true
|
2024-02-15 14:23:04 +03:00
|
|
|
scrolloff = 5
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
[preview]
|
2023-10-23 09:46:03 +03:00
|
|
|
tab_size = 2
|
|
|
|
max_width = 600
|
|
|
|
max_height = 900
|
|
|
|
cache_dir = ""
|
2024-01-26 17:59:49 +03:00
|
|
|
image_filter = "triangle"
|
2024-01-25 10:47:59 +03:00
|
|
|
image_quality = 75
|
|
|
|
sixel_fraction = 15
|
2023-10-23 09:46:03 +03:00
|
|
|
ueberzug_scale = 1
|
|
|
|
ueberzug_offset = [ 0, 0, 0, 0 ]
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
[opener]
|
2023-10-19 05:48:05 +03:00
|
|
|
edit = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ run = '${EDITOR:=vi} "$@"', desc = "$EDITOR", block = true, for = "unix" },
|
|
|
|
{ run = 'code "%*"', orphan = true, desc = "code", for = "windows" },
|
|
|
|
{ run = 'code -w "%*"', block = true, desc = "code (block)", for = "windows" },
|
2023-07-27 03:08:09 +03:00
|
|
|
]
|
2023-10-19 05:48:05 +03:00
|
|
|
open = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ run = 'xdg-open "$@"', desc = "Open", for = "linux" },
|
|
|
|
{ run = 'open "$@"', desc = "Open", for = "macos" },
|
|
|
|
{ run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
2023-10-19 05:48:05 +03:00
|
|
|
reveal = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ run = 'open -R "$1"', desc = "Reveal", for = "macos" },
|
|
|
|
{ run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" },
|
|
|
|
{ run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
2023-10-19 05:48:05 +03:00
|
|
|
extract = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ run = 'unar "$1"', desc = "Extract here", for = "unix" },
|
|
|
|
{ run = 'unar "%1"', desc = "Extract here", for = "windows" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
2023-10-19 05:48:05 +03:00
|
|
|
play = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ run = 'mpv "$@"', orphan = true, for = "unix" },
|
|
|
|
{ run = 'mpv "%1"', orphan = true, for = "windows" },
|
|
|
|
{ run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
[open]
|
|
|
|
rules = [
|
2023-10-19 05:48:05 +03:00
|
|
|
{ name = "*/", use = [ "edit", "open", "reveal" ] },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-10-19 05:48:05 +03:00
|
|
|
{ mime = "text/*", use = [ "edit", "reveal" ] },
|
|
|
|
{ mime = "image/*", use = [ "open", "reveal" ] },
|
|
|
|
{ mime = "video/*", use = [ "play", "reveal" ] },
|
|
|
|
{ mime = "audio/*", use = [ "play", "reveal" ] },
|
|
|
|
{ mime = "inode/x-empty", use = [ "edit", "reveal" ] },
|
2023-09-05 15:28:24 +03:00
|
|
|
|
2023-10-19 05:48:05 +03:00
|
|
|
{ mime = "application/json", use = [ "edit", "reveal" ] },
|
|
|
|
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2024-04-08 03:29:21 +03:00
|
|
|
{ mime = "application/*zip", use = [ "extract", "reveal" ] },
|
2023-10-19 05:48:05 +03:00
|
|
|
{ mime = "application/x-tar", use = [ "extract", "reveal" ] },
|
2024-04-08 03:29:21 +03:00
|
|
|
{ mime = "application/x-bzip*", use = [ "extract", "reveal" ] },
|
2023-10-19 05:48:05 +03:00
|
|
|
{ mime = "application/x-7z-compressed", use = [ "extract", "reveal" ] },
|
|
|
|
{ mime = "application/x-rar", use = [ "extract", "reveal" ] },
|
2024-03-26 16:21:41 +03:00
|
|
|
{ mime = "application/x-xz", use = [ "extract", "reveal" ] },
|
2023-08-13 14:01:48 +03:00
|
|
|
|
2023-10-19 05:48:05 +03:00
|
|
|
{ mime = "*", use = [ "open", "reveal" ] },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
2023-08-02 05:29:49 +03:00
|
|
|
|
2023-08-14 02:44:01 +03:00
|
|
|
[tasks]
|
2024-01-15 13:30:50 +03:00
|
|
|
micro_workers = 10
|
|
|
|
macro_workers = 25
|
2023-12-05 20:07:23 +03:00
|
|
|
bizarre_retry = 5
|
|
|
|
image_alloc = 536870912 # 512MB
|
|
|
|
image_bound = [ 0, 0 ]
|
|
|
|
suppress_preload = false
|
2023-08-14 02:44:01 +03:00
|
|
|
|
2023-12-26 14:48:33 +03:00
|
|
|
[plugin]
|
|
|
|
|
|
|
|
preloaders = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ name = "*", cond = "!mime", run = "mime", multi = true, prio = "high" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Image
|
2024-03-26 16:21:41 +03:00
|
|
|
{ mime = "image/*", run = "image" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Video
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "video/*", run = "video" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# PDF
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "application/pdf", run = "pdf" },
|
2023-12-26 14:48:33 +03:00
|
|
|
]
|
|
|
|
previewers = [
|
2024-03-04 12:54:40 +03:00
|
|
|
{ name = "*/", run = "folder", sync = true },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Code
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "text/*", run = "code" },
|
|
|
|
{ mime = "*/xml", run = "code" },
|
|
|
|
{ mime = "*/javascript", run = "code" },
|
|
|
|
{ mime = "*/x-wine-extension-ini", run = "code" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# JSON
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "application/json", run = "json" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Image
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "image/vnd.djvu", run = "noop" },
|
|
|
|
{ mime = "image/*", run = "image" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Video
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "video/*", run = "video" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# PDF
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "application/pdf", run = "pdf" },
|
2023-12-26 14:48:33 +03:00
|
|
|
# Archive
|
2024-04-08 03:29:21 +03:00
|
|
|
{ mime = "application/*zip", run = "archive" },
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "application/x-tar", run = "archive" },
|
2024-04-08 03:29:21 +03:00
|
|
|
{ mime = "application/x-bzip*", run = "archive" },
|
2024-03-04 12:54:40 +03:00
|
|
|
{ mime = "application/x-7z-compressed", run = "archive" },
|
|
|
|
{ mime = "application/x-rar", run = "archive" },
|
2024-03-26 16:21:41 +03:00
|
|
|
{ mime = "application/x-xz", run = "archive" },
|
2024-01-20 03:41:46 +03:00
|
|
|
# Fallback
|
2024-03-04 12:54:40 +03:00
|
|
|
{ name = "*", run = "file" },
|
2023-12-26 14:48:33 +03:00
|
|
|
]
|
2023-10-11 19:09:10 +03:00
|
|
|
|
2023-11-17 20:40:20 +03:00
|
|
|
[input]
|
|
|
|
# cd
|
|
|
|
cd_title = "Change directory:"
|
|
|
|
cd_origin = "top-center"
|
|
|
|
cd_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# create
|
|
|
|
create_title = "Create:"
|
|
|
|
create_origin = "top-center"
|
|
|
|
create_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# rename
|
|
|
|
rename_title = "Rename:"
|
|
|
|
rename_origin = "hovered"
|
|
|
|
rename_offset = [ 0, 1, 50, 3 ]
|
|
|
|
|
|
|
|
# trash
|
|
|
|
trash_title = "Move {n} selected file{s} to trash? (y/N)"
|
|
|
|
trash_origin = "top-center"
|
|
|
|
trash_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# delete
|
|
|
|
delete_title = "Delete {n} selected file{s} permanently? (y/N)"
|
|
|
|
delete_origin = "top-center"
|
|
|
|
delete_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
2023-12-27 19:33:16 +03:00
|
|
|
# filter
|
|
|
|
filter_title = "Filter:"
|
|
|
|
filter_origin = "top-center"
|
|
|
|
filter_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
2023-11-17 20:40:20 +03:00
|
|
|
# find
|
|
|
|
find_title = [ "Find next:", "Find previous:" ]
|
|
|
|
find_origin = "top-center"
|
|
|
|
find_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# search
|
2024-01-22 09:25:07 +03:00
|
|
|
search_title = "Search via {n}:"
|
2023-11-17 20:40:20 +03:00
|
|
|
search_origin = "top-center"
|
|
|
|
search_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# shell
|
|
|
|
shell_title = [ "Shell:", "Shell (block):" ]
|
|
|
|
shell_origin = "top-center"
|
|
|
|
shell_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# overwrite
|
|
|
|
overwrite_title = "Overwrite an existing file? (y/N)"
|
|
|
|
overwrite_origin = "top-center"
|
|
|
|
overwrite_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
# quit
|
|
|
|
quit_title = "{n} task{s} running, sure to quit? (y/N)"
|
|
|
|
quit_origin = "top-center"
|
|
|
|
quit_offset = [ 0, 2, 50, 3 ]
|
|
|
|
|
|
|
|
[select]
|
|
|
|
open_title = "Open with:"
|
|
|
|
open_origin = "hovered"
|
|
|
|
open_offset = [ 0, 1, 50, 7 ]
|
|
|
|
|
2024-02-12 21:39:36 +03:00
|
|
|
[which]
|
|
|
|
sort_by = "none"
|
|
|
|
sort_sensitive = false
|
|
|
|
sort_reverse = false
|
|
|
|
|
2023-08-02 05:29:49 +03:00
|
|
|
[log]
|
|
|
|
enabled = false
|
2024-03-08 22:07:20 +03:00
|
|
|
|
|
|
|
[headsup]
|