update yazi config

This commit is contained in:
Alexander Navarro 2026-01-09 14:14:16 -03:00
parent ced3795edf
commit f357ee61fa
6 changed files with 58 additions and 45 deletions

View file

@ -16,7 +16,7 @@ mouse_events = ["click", "scroll"]
title_format = "Yazi: {cwd}"
[preview]
cache_dir = ""
cache_dir = "$HOME/.cache/yazi"
image_delay = 0
image_filter = "triangle"
image_quality = 75
@ -72,46 +72,8 @@ image_bound = [0, 0]
suppress_preload = false
[plugin]
prepend_previewers = [{ mime = "application/{*zip,tar,bzip2,7z*,rar,xz,zstd,java-archive}", run = "ouch --show-file-icons" }]
fetchers = [
# Mimetype
{ id = "mime", url = "*", run = "mime", if = "!mime", prio = "high" },
]
preloaders = [
# example
{ mime = "image/{avif,heic,jxl,svg+xml}", run = "magick" },
{ mime = "image/*", run = "image" },
# Video
{ mime = "video/*", run = "video" },
# PDF
{ mime = "application/pdf", run = "pdf" },
# Font
{ mime = "font/*", run = "font" },
{ mime = "application/vnd.ms-opentype", run = "font" },
]
previewers = [
{ url = "*/", run = "folder", sync = true },
# Code
{ mime = "text/*", run = "code" },
{ mime = "*/{xml,javascript,x-wine-extension-ini}", run = "code" },
# JSON
{ mime = "application/{json,x-ndjson}", run = "json" },
# Image
{ mime = "image/{avif,hei?,jxl,svg+xml}", run = "magick" },
{ mime = "image/*", run = "image" },
# Video
{ mime = "video/*", run = "video" },
# PDF
{ mime = "application/pdf", run = "pdf" },
# Archive
{ mime = "application/{,g}zip", run = "archive" },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar,iso9660-image}", run = "archive" },
# Font
{ mime = "font/*", run = "font" },
{ mime = "application/vnd.ms-opentype", run = "font" },
# Fallback
{ url = "*", run = "file" },
]
[input]
cursor_blink = false