🐛 fix(yazi): nvim and nemo not opening correctly for specified filetypes
This commit is contained in:
parent
eb66686ac8
commit
e67ab56f23
1 changed files with 7 additions and 7 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Reference in a new issue