mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: ePUB file mime-type matching for the opener rule (#1063)
This commit is contained in:
parent
bf1c325d00
commit
a68e151194
9 changed files with 26 additions and 25 deletions
29
Cargo.lock
generated
29
Cargo.lock
generated
|
|
@ -984,12 +984,6 @@ dependencies = [
|
||||||
"hashbrown",
|
"hashbrown",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "indoc"
|
|
||||||
version = "2.0.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "inotify"
|
name = "inotify"
|
||||||
version = "0.9.6"
|
version = "0.9.6"
|
||||||
|
|
@ -1554,21 +1548,21 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ratatui"
|
name = "ratatui"
|
||||||
version = "0.26.1"
|
version = "0.26.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bcb12f8fbf6c62614b0d56eb352af54f6a22410c3b079eb53ee93c7b97dd31d8"
|
checksum = "f44c9e68fd46eda15c646fbb85e1040b657a58cdc8c98db1d97a55930d991eef"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.5.0",
|
"bitflags 2.5.0",
|
||||||
"cassowary",
|
"cassowary",
|
||||||
"compact_str",
|
"compact_str",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
"indoc",
|
|
||||||
"itertools",
|
"itertools",
|
||||||
"lru",
|
"lru",
|
||||||
"paste",
|
"paste",
|
||||||
"stability",
|
"stability",
|
||||||
"strum",
|
"strum",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
|
"unicode-truncate",
|
||||||
"unicode-width",
|
"unicode-width",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -1857,12 +1851,12 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "stability"
|
name = "stability"
|
||||||
version = "0.1.1"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ebd1b177894da2a2d9120208c3386066af06a488255caabc5de8ddca22dbc3ce"
|
checksum = "2ff9eaf853dec4c8802325d8b6d3dffa86cc707fd7a1a4cdbf416e13b061787a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"quote",
|
"quote",
|
||||||
"syn 1.0.109",
|
"syn 2.0.60",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -1912,7 +1906,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
|
||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -2264,6 +2257,16 @@ version = "1.11.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
|
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]]
|
[[package]]
|
||||||
name = "unicode-width"
|
name = "unicode-width"
|
||||||
version = "0.1.12"
|
version = "0.1.12"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ futures = "0.3.30"
|
||||||
image = "0.24.9"
|
image = "0.24.9"
|
||||||
imagesize = "0.12.0"
|
imagesize = "0.12.0"
|
||||||
kamadak-exif = "0.5.5"
|
kamadak-exif = "0.5.5"
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
scopeguard = "1.2.0"
|
scopeguard = "1.2.0"
|
||||||
tokio = { version = "1.37.0", features = [ "full" ] }
|
tokio = { version = "1.37.0", features = [ "full" ] }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ arc-swap = "1.7.1"
|
||||||
crossterm = "0.27.0"
|
crossterm = "0.27.0"
|
||||||
globset = "0.4.14"
|
globset = "0.4.14"
|
||||||
indexmap = "2.2.6"
|
indexmap = "2.2.6"
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
serde = { version = "1.0.202", features = [ "derive" ] }
|
serde = { version = "1.0.202", features = [ "derive" ] }
|
||||||
shell-words = "1.1.0"
|
shell-words = "1.1.0"
|
||||||
toml = { version = "0.8.13", features = [ "preserve_order" ] }
|
toml = { version = "0.8.13", features = [ "preserve_order" ] }
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ rules = [
|
||||||
{ mime = "{audio,video}/*", fg = "magenta" },
|
{ mime = "{audio,video}/*", fg = "magenta" },
|
||||||
|
|
||||||
# Archives
|
# Archives
|
||||||
{ mime = "application/*zip", fg = "red" },
|
{ mime = "application/?(g)zip", fg = "red" },
|
||||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "red" },
|
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "red" },
|
||||||
|
|
||||||
# Documents
|
# Documents
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ rules = [
|
||||||
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
||||||
{ mime = "inode/x-empty", use = [ "edit", "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/x-{tar,bzip*,7z-compressed,xz,rar}", use = [ "extract", "reveal" ] },
|
||||||
|
|
||||||
{ mime = "application/json", use = [ "edit", "reveal" ] },
|
{ mime = "application/json", use = [ "edit", "reveal" ] },
|
||||||
|
|
@ -114,7 +114,7 @@ previewers = [
|
||||||
# PDF
|
# PDF
|
||||||
{ mime = "application/pdf", run = "pdf" },
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
# Archive
|
# Archive
|
||||||
{ mime = "application/*zip", run = "archive" },
|
{ mime = "application/?(g)zip", run = "archive" },
|
||||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "archive" },
|
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "archive" },
|
||||||
# Font
|
# Font
|
||||||
{ mime = "font/*", run = "font" },
|
{ mime = "font/*", run = "font" },
|
||||||
|
|
@ -191,5 +191,3 @@ sort_reverse = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|
||||||
[headsup]
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ crossterm = "0.27.0"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
notify = { version = "6.1.1", default-features = false, features = [ "macos_fsevent" ] }
|
notify = { version = "6.1.1", default-features = false, features = [ "macos_fsevent" ] }
|
||||||
parking_lot = "0.12.2"
|
parking_lot = "0.12.2"
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
regex = "1.10.4"
|
regex = "1.10.4"
|
||||||
scopeguard = "1.2.0"
|
scopeguard = "1.2.0"
|
||||||
serde = "1.0.202"
|
serde = "1.0.202"
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ crossterm = { version = "0.27.0", features = [ "event-stream" ] }
|
||||||
fdlimit = "0.3.0"
|
fdlimit = "0.3.0"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
mlua = { version = "0.9.8", features = [ "lua54" ] }
|
mlua = { version = "0.9.8", features = [ "lua54" ] }
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
scopeguard = "1.2.0"
|
scopeguard = "1.2.0"
|
||||||
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
|
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
|
||||||
tokio = { version = "1.37.0", features = [ "full" ] }
|
tokio = { version = "1.37.0", features = [ "full" ] }
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ futures = "0.3.30"
|
||||||
md-5 = "0.10.6"
|
md-5 = "0.10.6"
|
||||||
mlua = { version = "0.9.8", features = [ "lua54", "serialize", "macros", "async" ] }
|
mlua = { version = "0.9.8", features = [ "lua54", "serialize", "macros", "async" ] }
|
||||||
parking_lot = "0.12.2"
|
parking_lot = "0.12.2"
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
serde = "1.0.202"
|
serde = "1.0.202"
|
||||||
serde_json = "1.0.117"
|
serde_json = "1.0.117"
|
||||||
shell-escape = "0.1.5"
|
shell-escape = "0.1.5"
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ filetime = "0.2.23"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
parking_lot = "0.12.2"
|
parking_lot = "0.12.2"
|
||||||
percent-encoding = "2.3.1"
|
percent-encoding = "2.3.1"
|
||||||
ratatui = "=0.26.1"
|
ratatui = "0.26.3"
|
||||||
regex = "1.10.4"
|
regex = "1.10.4"
|
||||||
serde = { version = "1.0.202", features = [ "derive" ] }
|
serde = { version = "1.0.202", features = [ "derive" ] }
|
||||||
shell-words = "1.1.0"
|
shell-words = "1.1.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue