fix: ePUB file mime-type matching for the opener rule (#1063)

This commit is contained in:
三咲雅 · Misaki Masa 2024-05-20 21:04:20 +08:00 committed by GitHub
parent bf1c325d00
commit a68e151194
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 26 additions and 25 deletions

29
Cargo.lock generated
View file

@ -984,12 +984,6 @@ dependencies = [
"hashbrown",
]
[[package]]
name = "indoc"
version = "2.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
[[package]]
name = "inotify"
version = "0.9.6"
@ -1554,21 +1548,21 @@ dependencies = [
[[package]]
name = "ratatui"
version = "0.26.1"
version = "0.26.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bcb12f8fbf6c62614b0d56eb352af54f6a22410c3b079eb53ee93c7b97dd31d8"
checksum = "f44c9e68fd46eda15c646fbb85e1040b657a58cdc8c98db1d97a55930d991eef"
dependencies = [
"bitflags 2.5.0",
"cassowary",
"compact_str",
"crossterm",
"indoc",
"itertools",
"lru",
"paste",
"stability",
"strum",
"unicode-segmentation",
"unicode-truncate",
"unicode-width",
]
@ -1857,12 +1851,12 @@ dependencies = [
[[package]]
name = "stability"
version = "0.1.1"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebd1b177894da2a2d9120208c3386066af06a488255caabc5de8ddca22dbc3ce"
checksum = "2ff9eaf853dec4c8802325d8b6d3dffa86cc707fd7a1a4cdbf416e13b061787a"
dependencies = [
"quote",
"syn 1.0.109",
"syn 2.0.60",
]
[[package]]
@ -1912,7 +1906,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
@ -2264,6 +2257,16 @@ version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
[[package]]
name = "unicode-truncate"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a5fbabedabe362c618c714dbefda9927b5afc8e2a8102f47f081089a9019226"
dependencies = [
"itertools",
"unicode-width",
]
[[package]]
name = "unicode-width"
version = "0.1.12"

View file

@ -22,7 +22,7 @@ futures = "0.3.30"
image = "0.24.9"
imagesize = "0.12.0"
kamadak-exif = "0.5.5"
ratatui = "=0.26.1"
ratatui = "0.26.3"
scopeguard = "1.2.0"
tokio = { version = "1.37.0", features = [ "full" ] }

View file

@ -17,7 +17,7 @@ arc-swap = "1.7.1"
crossterm = "0.27.0"
globset = "0.4.14"
indexmap = "2.2.6"
ratatui = "=0.26.1"
ratatui = "0.26.3"
serde = { version = "1.0.202", features = [ "derive" ] }
shell-words = "1.1.0"
toml = { version = "0.8.13", features = [ "preserve_order" ] }

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]

View file

@ -25,7 +25,7 @@ crossterm = "0.27.0"
futures = "0.3.30"
notify = { version = "6.1.1", default-features = false, features = [ "macos_fsevent" ] }
parking_lot = "0.12.2"
ratatui = "=0.26.1"
ratatui = "0.26.3"
regex = "1.10.4"
scopeguard = "1.2.0"
serde = "1.0.202"

View file

@ -29,7 +29,7 @@ crossterm = { version = "0.27.0", features = [ "event-stream" ] }
fdlimit = "0.3.0"
futures = "0.3.30"
mlua = { version = "0.9.8", features = [ "lua54" ] }
ratatui = "=0.26.1"
ratatui = "0.26.3"
scopeguard = "1.2.0"
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
tokio = { version = "1.37.0", features = [ "full" ] }

View file

@ -29,14 +29,14 @@ futures = "0.3.30"
md-5 = "0.10.6"
mlua = { version = "0.9.8", features = [ "lua54", "serialize", "macros", "async" ] }
parking_lot = "0.12.2"
ratatui = "=0.26.1"
ratatui = "0.26.3"
serde = "1.0.202"
serde_json = "1.0.117"
shell-escape = "0.1.5"
shell-words = "1.1.0"
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
tokio = { version = "1.37.0", features = [ "full" ] }
tokio-stream = "0.1.15"
tokio-stream = "0.1.15"
tokio-util = "0.7.11"
unicode-width = "0.1.12"
yazi-prebuild = "0.1.2"

View file

@ -18,7 +18,7 @@ filetime = "0.2.23"
futures = "0.3.30"
parking_lot = "0.12.2"
percent-encoding = "2.3.1"
ratatui = "=0.26.1"
ratatui = "0.26.3"
regex = "1.10.4"
serde = { version = "1.0.202", features = [ "derive" ] }
shell-words = "1.1.0"