mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-18 22:31:35 +03:00
fix: mime-type for xz archives (#841)
This commit is contained in:
parent
f8e0aee311
commit
e619a97ee2
@ -184,7 +184,7 @@ rules = [
|
||||
{ mime = "application/x-bzip2", fg = "magenta" },
|
||||
{ mime = "application/x-7z-compressed", fg = "magenta" },
|
||||
{ mime = "application/x-rar", fg = "magenta" },
|
||||
{ mime = "application/xz", fg = "magenta" },
|
||||
{ mime = "application/x-xz", fg = "magenta" },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/doc", fg = "green" },
|
||||
|
@ -70,7 +70,7 @@ rules = [
|
||||
{ mime = "application/x-bzip2", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/x-7z-compressed", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/x-rar", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/xz", use = [ "extract", "reveal" ] },
|
||||
{ mime = "application/x-xz", use = [ "extract", "reveal" ] },
|
||||
|
||||
{ mime = "*", use = [ "open", "reveal" ] },
|
||||
]
|
||||
@ -88,8 +88,7 @@ suppress_preload = false
|
||||
preloaders = [
|
||||
{ name = "*", cond = "!mime", run = "mime", multi = true, prio = "high" },
|
||||
# Image
|
||||
{ mime = "image/vnd.djvu", run = "noop" },
|
||||
{ mime = "image/*", run = "image" },
|
||||
{ mime = "image/*", run = "image" },
|
||||
# Video
|
||||
{ mime = "video/*", run = "video" },
|
||||
# PDF
|
||||
@ -119,7 +118,7 @@ previewers = [
|
||||
{ mime = "application/x-bzip2", run = "archive" },
|
||||
{ mime = "application/x-7z-compressed", run = "archive" },
|
||||
{ mime = "application/x-rar", run = "archive" },
|
||||
{ mime = "application/xz", run = "archive" },
|
||||
{ mime = "application/x-xz", run = "archive" },
|
||||
# Fallback
|
||||
{ name = "*", run = "file" },
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user