yazi/config/preset/yazi.toml

60 lines
1.3 KiB
TOML
Raw Normal View History

2023-07-17 19:34:58 +03:00
[manager]
sort_by = "modified"
sort_reverse = true
show_hidden = false
[preview]
tab_size = 2
max_width = 600
max_height = 900
[opener]
2023-07-27 03:08:09 +03:00
folder = [
{ cmd = "open", args = [ "-R", "$*" ] },
{ cmd = "vim", args = [ "$*" ] },
2023-07-27 03:08:09 +03:00
]
2023-07-17 19:34:58 +03:00
archive = [
2023-08-04 12:34:51 +03:00
{ cmd = "unar", args = [ "$0" ] },
2023-07-17 19:34:58 +03:00
]
text = [
2023-07-27 03:08:09 +03:00
{ cmd = "vim", args = [ "$*" ], block = true },
2023-07-17 19:34:58 +03:00
]
image = [
{ cmd = "open", args = [ "$*" ] },
2023-08-04 12:34:51 +03:00
{ cmd = "exiftool", args = [ "$0" ], block = true },
2023-07-17 19:34:58 +03:00
]
video = [
{ cmd = "mpv", args = [ "$*" ] },
2023-08-04 12:34:51 +03:00
{ cmd = "mediainfo", args = [ "$0" ], block = true },
2023-07-17 19:34:58 +03:00
]
audio = [
{ cmd = "mpv", args = [ "$*" ] },
2023-08-04 12:34:51 +03:00
{ cmd = "mediainfo", args = [ "$0" ], block = true },
2023-07-17 19:34:58 +03:00
]
fallback = [
{ cmd = "open", args = [ "$*" ] },
2023-07-27 03:08:09 +03:00
{ cmd = "open", args = [ "-R", "$*" ] },
2023-07-17 19:34:58 +03:00
]
[open]
rules = [
2023-07-27 03:08:09 +03:00
{ name = "*/", use = "folder" },
2023-07-17 19:34:58 +03:00
{ name = "*.html", use = "fallback" },
{ mime = "text/*", use = "text" },
{ mime = "image/*", use = "image" },
{ mime = "video/*", use = "video" },
{ mime = "audio/*", use = "audio" },
{ mime = "application/x-bzip", use = "archive" },
{ mime = "application/x-bzip2", use = "archive" },
{ mime = "application/gzip", use = "archive" },
{ mime = "application/vnd.rar", use = "archive" },
{ mime = "application/x-tar", use = "archive" },
{ mime = "application/zip", use = "archive" },
{ mime = "application/x-7z-compressed", use = "archive" },
]
[log]
enabled = false