# A TOML linter such as Tombi can use this schema to validate your config. #:schema https://yazi-rs.github.io/schemas/yazi.json [mgr] show_hidden = true sort_by = "natural" sort_dir_first = true linemode = "none" [opener] edit = [ { run = 'nvim %s', desc = "nvim", block = true, for = "unix" }, ] play = [ { run = 'mpv %s', desc = "mpv", orphan = true, for = "unix" }, ] open = [ { run = 'xdg-open %s1', desc = "Open", for = "linux" }, ] extract = [ { run = 'ouch d -y %s', desc = "Extract here with ouch", for = "unix" }, ] [open] prepend_rules = [ { mime = "text/*", use = [ "edit", "reveal" ] }, { mime = "application/{json,ndjson,javascript,wine-extension-ini}", use = [ "edit", "reveal" ] }, ] [plugin] prepend_fetchers = [ { url = "*", run = "git", group = "git" }, { url = "*/", run = "git", group = "git" }, ] prepend_previewers = [ { url = "*.md", mime = "text/markdown", run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"' }, { mime = "application/{*zip,tar,bzip2,7z*,rar,xz,zstd,java-archive}", run = "ouch" }, ] append_previewers = [ { url = "*", run = 'piper -- hexyl --border=none --terminal-width=$w "$1"' }, ]