🐛 fix(yazi): nvim and nemo not opening correctly for specified filetypes

This commit is contained in:
Sergio Laín 2024-05-11 12:52:07 +02:00
parent eb66686ac8
commit e67ab56f23
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B

View file

@ -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" },