mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-25 17:54:57 +03:00
76 lines
2.3 KiB
TOML
76 lines
2.3 KiB
TOML
[manager]
|
|
layout = [ 1, 4, 3 ]
|
|
sort_by = "modified"
|
|
sort_sensitive = true
|
|
sort_reverse = true
|
|
sort_dir_first = true
|
|
linemode = "none"
|
|
show_hidden = false
|
|
show_symlink = true
|
|
|
|
[preview]
|
|
tab_size = 2
|
|
max_width = 600
|
|
max_height = 900
|
|
cache_dir = ""
|
|
|
|
[opener]
|
|
edit = [
|
|
{ exec = '$EDITOR "$@"', block = true, for = "unix" },
|
|
{ exec = 'code "%*"', for = "windows" },
|
|
]
|
|
open = [
|
|
{ exec = 'xdg-open "$@"', desc = "Open", for = "linux" },
|
|
{ exec = 'open "$@"', desc = "Open", for = "macos" },
|
|
{ exec = '%1', desc = "Open", for = "windows" }
|
|
]
|
|
reveal = [
|
|
{ exec = 'open -R "$@"', desc = "Reveal", for = "macos" },
|
|
{ exec = 'explorer "%*"', desc = "Reveal", for = "windows" },
|
|
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF", for = "unix" },
|
|
]
|
|
extract = [
|
|
{ exec = 'unar "$1"', desc = "Extract here", for = "unix" },
|
|
{ exec = 'unar "%1"', desc = "Extract here", for = "windows" },
|
|
]
|
|
play = [
|
|
{ exec = 'mpv "$@"', orphan = true, for = "unix" },
|
|
{ exec = 'mpv "%1"', for = "windows" },
|
|
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info", for = "unix" },
|
|
]
|
|
|
|
[open]
|
|
rules = [
|
|
{ name = "*/", use = [ "edit", "open", "reveal" ] },
|
|
|
|
{ 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" ] },
|
|
|
|
{ mime = "application/json", use = [ "edit", "reveal" ] },
|
|
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
|
|
|
{ mime = "application/zip", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/gzip", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/x-tar", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/x-bzip", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/x-bzip2", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/x-7z-compressed", use = [ "extract", "reveal" ] },
|
|
{ mime = "application/x-rar", use = [ "extract", "reveal" ] },
|
|
|
|
{ mime = "*", use = [ "open", "reveal" ] },
|
|
]
|
|
|
|
[tasks]
|
|
micro_workers = 5
|
|
macro_workers = 10
|
|
bizarre_retry = 5
|
|
|
|
[plugins]
|
|
preload = []
|
|
|
|
[log]
|
|
enabled = false
|