mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: add missing rar mime type
The newest version of file, file 5.46, now classifies rar archives as application/vnd.rar instead of application/rar. There is also a bug in this newest version of file that classifies some zip archives as application/octet-stream, but hopefully that will get fixed before Yazi 0.4 goes live.
This commit is contained in:
parent
c7d9265d25
commit
910b57374f
2 changed files with 3 additions and 3 deletions
|
|
@ -205,7 +205,7 @@ rules = [
|
|||
|
||||
# Archives
|
||||
{ mime = "application/{,g}zip", fg = "red" },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar}", fg = "red" },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar,vnd.rar}", fg = "red" },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "cyan" },
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ rules = [
|
|||
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
||||
# Archive
|
||||
{ mime = "application/{,g}zip", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar}", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar,vnd.rar}", use = [ "extract", "reveal" ] },
|
||||
# JSON
|
||||
{ mime = "application/{json,ndjson}", use = [ "edit", "reveal" ] },
|
||||
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
||||
|
|
@ -133,7 +133,7 @@ previewers = [
|
|||
{ mime = "application/pdf", run = "pdf" },
|
||||
# Archive
|
||||
{ mime = "application/{,g}zip", run = "archive" },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar,iso9660-image}", run = "archive" },
|
||||
{ mime = "application/{tar,bzip*,7z-compressed,xz,rar,vnd.rar,iso9660-image}", run = "archive" },
|
||||
# Font
|
||||
{ mime = "font/*", run = "font" },
|
||||
{ mime = "application/vnd.ms-opentype", run = "font" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue