From e67ab56f235de5735ef20747d4314d15933e5f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 11 May 2024 12:52:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(yazi):=20nvim=20and=20nemo?= =?UTF-8?q?=20not=20opening=20correctly=20for=20specified=20filetypes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yazi/yazi.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index c98e5d4e..fef23e54 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -7,14 +7,14 @@ sort_dir_first = true [opener] folder = [ - { run = 'hyprctl dispatch run "[float; size 60% 60%; center 1] xdg-open" "$@"', desc = "Open in GUI File Manager" }, + { run = 'hyprctl dispatch exec "[float; size 60% 60%; center 1] xdg-open" "$@"', desc = "Open in GUI File Manager" }, { run = '$EDITOR "$@"' }, ] archive = [{ run = 'xdg-open "$1"', desc = "Extract here" }] pdf = [{ run = 'xdg-open "$1"', desc = "Open" }] docx = [{ run = 'xdg-open "$1"', desc = "Open" }] -text = [ - { run = 'pypr hide yazi & kitty --detach $EDITOR "$@"', block = true, desc = "Open" }, +edit = [ + { run = 'pypr hide yazi & kitty --detach nvim "$@"', block = true, desc = "Open" }, ] image = [ { run = 'xdg-open "$@"', desc = "Open" }, @@ -37,15 +37,15 @@ fallback = [ rules = [ { name = "*/", use = "folder" }, - { mime = "text/*", use = "text" }, + { mime = "text/*", use = "edit" }, { mime = "text/docx", use = "docx" }, { mime = "image/*", use = "image" }, { mime = "video/*", use = "video" }, { mime = "audio/*", use = "audio" }, - { mime = "inode/x-empty", use = "text" }, + { mime = "inode/x-empty", use = "edit" }, - { mime = "application/json", use = "text" }, - { mime = "*/javascript", use = "text" }, + { mime = "application/json", use = "edit" }, + { mime = "*/javascript", use = "edit" }, { mime = "application/pdf", use = "pdf" }, { mime = "application/zip", use = "archive" },