✨ feat(yazi): new open actions and options
This commit is contained in:
parent
0deae4ac40
commit
8108fbec7f
1 changed files with 8 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
[manager]
|
[manager]
|
||||||
layout = [1, 4, 3]
|
layout = [1, 4, 3]
|
||||||
sort_by = "modified"
|
sort_by = "natural"
|
||||||
sort_reverse = true
|
sort_reverse = false
|
||||||
sort_dir_first = true
|
sort_dir_first = true
|
||||||
show_hidden = false
|
show_hidden = false
|
||||||
show_symlink = true
|
show_symlink = true
|
||||||
|
@ -17,18 +17,19 @@ folder = [
|
||||||
{ exec = 'open -R "$@"', desc = "Reveal in Finder" },
|
{ exec = 'open -R "$@"', desc = "Reveal in Finder" },
|
||||||
{ exec = '$EDITOR "$@"' },
|
{ exec = '$EDITOR "$@"' },
|
||||||
]
|
]
|
||||||
archive = [{ exec = 'unar "$1"', desc = "Extract here" }]
|
archive = [{ exec = 'xarchiver "$1"', desc = "Extract here" }]
|
||||||
|
pdf = [{ exec = 'zathura "$1"', desc = "Open" }]
|
||||||
text = [{ exec = '$EDITOR "$@"', block = true }]
|
text = [{ exec = '$EDITOR "$@"', block = true }]
|
||||||
image = [
|
image = [
|
||||||
{ exec = 'open "$@"', desc = "Open" },
|
{ exec = 'geeqie "$@"', desc = "Open" },
|
||||||
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF" },
|
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF" },
|
||||||
]
|
]
|
||||||
video = [
|
video = [
|
||||||
{ exec = 'mpv "$@"' },
|
{ exec = 'celluloid "$@"' },
|
||||||
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
|
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
|
||||||
]
|
]
|
||||||
audio = [
|
audio = [
|
||||||
{ exec = 'mpv "$@"' },
|
{ exec = 'celluloid "$@"' },
|
||||||
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
|
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
|
||||||
]
|
]
|
||||||
fallback = [
|
fallback = [
|
||||||
|
@ -49,6 +50,7 @@ rules = [
|
||||||
{ mime = "application/json", use = "text" },
|
{ mime = "application/json", use = "text" },
|
||||||
{ mime = "*/javascript", use = "text" },
|
{ mime = "*/javascript", use = "text" },
|
||||||
|
|
||||||
|
{ mime = "application/pdf", use = "pdf" },
|
||||||
{ mime = "application/zip", use = "archive" },
|
{ mime = "application/zip", use = "archive" },
|
||||||
{ mime = "application/gzip", use = "archive" },
|
{ mime = "application/gzip", use = "archive" },
|
||||||
{ mime = "application/x-bzip", use = "archive" },
|
{ mime = "application/x-bzip", use = "archive" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue