mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Squash 3 lines of rules into one line
This commit is contained in:
parent
9c998aac69
commit
4d2180a42a
3 changed files with 5 additions and 15 deletions
|
|
@ -206,9 +206,7 @@ rules = [
|
||||||
{ mime = "{audio,video}/*", fg = "magenta" },
|
{ mime = "{audio,video}/*", fg = "magenta" },
|
||||||
|
|
||||||
# Archives
|
# Archives
|
||||||
{ mime = "application/{zip,rar,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar}", fg = "red" },
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "red" },
|
||||||
{ mime = "application/7z*", fg = "red" },
|
|
||||||
{ mime = "application/ms-cab*", fg = "red" },
|
|
||||||
|
|
||||||
# Documents
|
# Documents
|
||||||
{ mime = "application/{pdf,doc,rtf}", fg = "cyan" },
|
{ mime = "application/{pdf,doc,rtf}", fg = "cyan" },
|
||||||
|
|
|
||||||
|
|
@ -206,9 +206,7 @@ rules = [
|
||||||
{ mime = "{audio,video}/*", fg = "magenta" },
|
{ mime = "{audio,video}/*", fg = "magenta" },
|
||||||
|
|
||||||
# Archives
|
# Archives
|
||||||
{ mime = "application/{zip,rar,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar}", fg = "red" },
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "red" },
|
||||||
{ mime = "application/7z*", fg = "red" },
|
|
||||||
{ mime = "application/ms-cab*", fg = "red" },
|
|
||||||
|
|
||||||
# Documents
|
# Documents
|
||||||
{ mime = "application/{pdf,doc,rtf}", fg = "cyan" },
|
{ mime = "application/{pdf,doc,rtf}", fg = "cyan" },
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,7 @@ rules = [
|
||||||
# Media
|
# Media
|
||||||
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
||||||
# Archive
|
# Archive
|
||||||
{ mime = "application/{zip,rar,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar}", use = [ "extract", "reveal" ] },
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", use = [ "extract", "reveal" ] },
|
||||||
{ mime = "application/7z*", use = [ "extract", "reveal" ] },
|
|
||||||
{ mime = "application/ms-cab*", use = [ "extract", "reveal" ] },
|
|
||||||
# JSON
|
# JSON
|
||||||
{ mime = "application/{json,ndjson}", use = [ "edit", "reveal" ] },
|
{ mime = "application/{json,ndjson}", use = [ "edit", "reveal" ] },
|
||||||
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
||||||
|
|
@ -133,18 +131,14 @@ previewers = [
|
||||||
# PDF
|
# PDF
|
||||||
{ mime = "application/pdf", run = "pdf" },
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
# Archive
|
# Archive
|
||||||
{ mime = "application/{zip,rar,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar}", run = "archive" },
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", run = "archive" },
|
||||||
{ mime = "application/7z*", run = "archive" },
|
|
||||||
{ mime = "application/{debian-package,redhat-package-manager,rpm}", run = "archive" },
|
{ mime = "application/{debian-package,redhat-package-manager,rpm}", run = "archive" },
|
||||||
{ mime = "application/debian.binary-package", run = "archive" },
|
{ mime = "application/debian.binary-package", run = "archive" },
|
||||||
{ mime = "application/android.package-archive", run = "archive" },
|
{ mime = "application/android.package-archive", run = "archive" },
|
||||||
{ mime = "application/ms-cab*", run = "archive" },
|
|
||||||
{ name = "*.{AppImage,appimage}", run = "archive" },
|
{ name = "*.{AppImage,appimage}", run = "archive" },
|
||||||
# Virtual Disk / Disk Image
|
# Virtual Disk / Disk Image
|
||||||
{ mime = "application/iso9660-image", run = "archive" },
|
{ mime = "application/{iso9660-image,qemu-disk,ms-wim,apple-diskimage}", run = "archive" },
|
||||||
{ mime = "application/qemu-disk", run = "archive" },
|
|
||||||
{ mime = "application/virtualbox-{vhd,vhdx}", run = "archive" },
|
{ mime = "application/virtualbox-{vhd,vhdx}", run = "archive" },
|
||||||
{ mime = "application/{ms-wim,apple-diskimage}", run = "archive" },
|
|
||||||
{ name = "*.{img,fat,ext,ext2,ext3,ext4,squashfs,ntfs,hfs,hfsx}", run = "archive" },
|
{ name = "*.{img,fat,ext,ext2,ext3,ext4,squashfs,ntfs,hfs,hfsx}", run = "archive" },
|
||||||
# Font
|
# Font
|
||||||
{ mime = "font/*", run = "font" },
|
{ mime = "font/*", run = "font" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue