fix: ePUB file mime-type matching for the opener rule

This commit is contained in:
sxyazi 2024-05-20 17:56:19 +08:00
parent bf1c325d00
commit d1d666a09c
No known key found for this signature in database
2 changed files with 3 additions and 5 deletions

View file

@ -176,7 +176,7 @@ rules = [
{ mime = "{audio,video}/*", fg = "magenta" },
# Archives
{ mime = "application/*zip", fg = "red" },
{ mime = "application/?(g)zip", fg = "red" },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "red" },
# Documents

View file

@ -60,7 +60,7 @@ rules = [
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
{ mime = "inode/x-empty", use = [ "edit", "reveal" ] },
{ mime = "application/*zip", use = [ "extract", "reveal" ] },
{ mime = "application/?(g)zip", use = [ "extract", "reveal" ] },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", use = [ "extract", "reveal" ] },
{ mime = "application/json", use = [ "edit", "reveal" ] },
@ -114,7 +114,7 @@ previewers = [
# PDF
{ mime = "application/pdf", run = "pdf" },
# Archive
{ mime = "application/*zip", run = "archive" },
{ mime = "application/?(g)zip", run = "archive" },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "archive" },
# Font
{ mime = "font/*", run = "font" },
@ -191,5 +191,3 @@ sort_reverse = false
[log]
enabled = false
[headsup]