yazi/yazi-config/preset/yazi.toml

136 lines
3.7 KiB
TOML
Raw Normal View History

2023-07-17 19:34:58 +03:00
[manager]
2023-08-20 05:39:05 +03:00
layout = [ 1, 4, 3 ]
sort_by = "modified"
sort_sensitive = true
sort_reverse = true
sort_dir_first = true
2023-10-20 04:10:07 +03:00
linemode = "none"
show_hidden = false
2023-08-17 09:58:46 +03:00
show_symlink = true
2023-07-17 19:34:58 +03:00
[preview]
tab_size = 2
max_width = 600
max_height = 900
cache_dir = ""
ueberzug_scale = 1
ueberzug_offset = [ 0, 0, 0, 0 ]
2023-07-17 19:34:58 +03:00
[opener]
edit = [
2023-10-21 05:53:52 +03:00
{ exec = '$EDITOR "$@"', block = true, for = "unix" },
{ exec = 'code "%*"', orphan = true, for = "windows" },
2023-07-27 03:08:09 +03:00
]
open = [
2023-10-21 05:53:52 +03:00
{ exec = 'xdg-open "$@"', desc = "Open", for = "linux" },
{ exec = 'open "$@"', desc = "Open", for = "macos" },
{ exec = 'start "%1"', orphan = true, desc = "Open", for = "windows" }
2023-07-17 19:34:58 +03:00
]
reveal = [
2023-10-21 05:53:52 +03:00
{ exec = 'open -R "$1"', desc = "Reveal", for = "macos" },
{ exec = 'explorer /select,%1', orphan = true, desc = "Reveal", for = "windows" },
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF", for = "unix" },
2023-07-17 19:34:58 +03:00
]
extract = [
{ exec = 'unar "$1"', desc = "Extract here", for = "unix" },
{ exec = 'unar "%1"', desc = "Extract here", for = "windows" },
2023-07-17 19:34:58 +03:00
]
play = [
{ exec = 'mpv "$@"', orphan = true, for = "unix" },
2023-10-21 05:53:52 +03:00
{ exec = 'mpv "%1"', orphan = true, for = "windows" },
{ exec = '''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 = [
{ name = "*/", use = [ "edit", "open", "reveal" ] },
2023-07-17 19:34:58 +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
{ mime = "application/json", use = [ "edit", "reveal" ] },
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
2023-07-17 19:34:58 +03:00
{ 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" ] },
2023-08-13 14:01:48 +03:00
{ mime = "*", use = [ "open", "reveal" ] },
2023-07-17 19:34:58 +03:00
]
[tasks]
micro_workers = 5
macro_workers = 10
bizarre_retry = 5
image_alloc = 536870912 # 512MB
image_bound = [ 0, 0 ]
2023-10-11 19:09:10 +03:00
[plugins]
preload = []
[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 ]
# find
find_title = [ "Find next:", "Find previous:" ]
find_origin = "top-center"
find_offset = [ 0, 2, 50, 3 ]
# search
search_title = "Search:"
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 ]
[log]
enabled = false