diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua index 40ea142..da80ac1 100644 --- a/.config/yazi/init.lua +++ b/.config/yazi/init.lua @@ -52,7 +52,7 @@ function Header:host() end function Header:render(area) - local chunks = self:layout(area) + local chunks = self:render(area) local left = ui.Line { self:host(), self:cwd() } local right = ui.Line { self:tabs() } diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 6e6de70..ebd3893 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -1,14 +1,14 @@ [[input.prepend_keymap]] on = [ "" ] -exec = "close" +run = "close" desc = "Cancel input" [[manager.prepend_keymap]] on = [ "l" ] -exec = "plugin --sync smart-enter" +run = "plugin --sync smart-enter" desc = "Enter the child directory, or open the file" [[manager.prepend_keymap]] on = [ "" ] -exec = "plugin --sync smart-enter" +run = "plugin --sync smart-enter" desc = "Enter the child directory, or open the file" \ No newline at end of file diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index d360236..fdda9fe 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -14,23 +14,23 @@ show_symlink=true [opener] edit = [ - { exec = '$EDITOR "$@"', block = true, desc="Edit", for = "unix" }, + { run = '$EDITOR "$@"', block = true, desc="Edit", for = "unix" }, ] open = [ - { exec = 'xdg-open "$@"', desc = "Open", for = "linux" }, - { exec = 'open "$@"', desc = "Open", for = "macos" }, - { exec = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" } + { run = 'xdg-open "$@"', desc = "Open", for = "linux" }, + { run = 'open "$@"', desc = "Open", for = "macos" }, + { run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" } ] extract = [ - { exec = '7z x "$1"', desc = "Extract here", for = "unix" }, + { run = '7z x "$1"', desc = "Extract here", for = "unix" }, ] play = [ - { exec = 'mpv "$@"', orphan = true, desc = "Play", for = "unix" }, - { exec = 'mpv "%1"', orphan = true, desc = "Play", for = "windows" }, + { run = 'mpv "$@"', orphan = true, desc = "Play", for = "unix" }, + { run = 'mpv "%1"', orphan = true, desc = "Play", for = "windows" }, ] info = [ - { exec = '''ffprobe -hide_banner "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show ffprobe info", for = "unix" }, - { exec = '''printf "'${1##*/}' Duration: ";ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show duration", for = "unix"} + { run = '''ffprobe -hide_banner "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show ffprobe info", for = "unix" }, + { run = '''printf "'${1##*/}' Duration: ";ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show duration", for = "unix"} ] [open] @@ -68,54 +68,54 @@ suppress_preload = false [plugin] prepend_previewers = [ - { name = "*.md", exec = "glow" }, + { name = "*.md", run = "glow" }, ] preloaders = [ - { name = "*", cond = "!mime", exec = "mime", multi = true, prio = "high" }, + { name = "*", cond = "!mime", run = "mime", multi = true, prio = "high" }, # Image - { mime = "image/vnd.djvu", exec = "noop" }, - { mime = "image/*", exec = "image" }, + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "image" }, # Video - { mime = "video/*", exec = "video" }, + { mime = "video/*", run = "video" }, # PDF - { mime = "application/pdf", exec = "pdf" }, + { mime = "application/pdf", run = "pdf" }, ] previewers = [ - { name = "*/", exec = "folder", sync = true }, + { name = "*/", run = "folder", sync = true }, # Code - { mime = "text/*", exec = "code" }, - { mime = "*/xml", exec = "code" }, - { mime = "*/javascript", exec = "code" }, - { mime = "*/x-wine-extension-ini", exec = "code" }, + { mime = "text/*", run = "code" }, + { mime = "*/xml", run = "code" }, + { mime = "*/javascript", run = "code" }, + { mime = "*/x-wine-extension-ini", run = "code" }, # JSON - { mime = "application/json", exec = "json" }, + { mime = "application/json", run = "json" }, # Image - { mime = "image/vnd.djvu", exec = "noop" }, - { mime = "image/*", exec = "viu" }, + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "viu" }, # Video - { mime = "video/*", exec = "video" }, + { mime = "video/*", run = "video" }, # PDF - { mime = "application/pdf", exec = "pdf2text" }, + { mime = "application/pdf", run = "pdf2text" }, # Archive - { mime = "application/zip", exec = "7z" }, - { mime = "application/gzip", exec = "7z" }, - { mime = "application/x-tar", exec = "7z" }, - { mime = "application/x-bzip", exec = "7z" }, - { mime = "application/x-bzip2", exec = "7z" }, - { mime = "application/x-7z-compressed", exec = "7z" }, - { mime = "application/x-rar", exec = "7z" }, - { mime = "application/xz", exec = "7z" }, - { mime = "application/x-bittorrent;", exec = "imdl" }, - { name = "*.torrent", exec = "imdl" }, + { mime = "application/zip", run = "7z" }, + { mime = "application/gzip", run = "7z" }, + { mime = "application/x-tar", run = "7z" }, + { mime = "application/x-bzip", run = "7z" }, + { mime = "application/x-bzip2", run = "7z" }, + { mime = "application/x-7z-compressed", run = "7z" }, + { mime = "application/x-rar", run = "7z" }, + { mime = "application/xz", run = "7z" }, + { mime = "application/x-bittorrent;", run = "imdl" }, + { name = "*.torrent", run = "imdl" }, # File Ext # Switch ROM - { name = "*.nsp", exec = "file" }, + { name = "*.nsp", run = "file" }, # Fallback - { mime = "application/octet-stream", exec = "hexyl" }, - { name = "*", exec = "file" }, + { mime = "application/octet-stream", run = "hexyl" }, + { name = "*", run = "file" }, ] [select]