mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: add use-dev-tty to fix piping to Yazi on macOS (#1317)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
640efcee26
commit
bba32ed0b2
8 changed files with 43 additions and 10 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
|
@ -482,6 +482,7 @@ checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.6.0",
|
"bitflags 2.6.0",
|
||||||
"crossterm_winapi",
|
"crossterm_winapi",
|
||||||
|
"filedescriptor",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"libc",
|
"libc",
|
||||||
"mio",
|
"mio",
|
||||||
|
|
@ -712,6 +713,17 @@ dependencies = [
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "filedescriptor"
|
||||||
|
version = "0.8.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7199d965852c3bac31f779ef99cbb4537f80e952e2d6aa0ffeb30cce00f4f46e"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"thiserror",
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "filetime"
|
name = "filetime"
|
||||||
version = "0.2.23"
|
version = "0.2.23"
|
||||||
|
|
|
||||||
|
|
@ -29,3 +29,6 @@ tokio = { version = "1.38.1", features = [ "full" ] }
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] }
|
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@ clap_complete_nushell = "4.5.2"
|
||||||
serde_json = "1.0.120"
|
serde_json = "1.0.120"
|
||||||
vergen-gitcl = { version = "1.0.0", features = [ "build" ] }
|
vergen-gitcl = { version = "1.0.0", features = [ "build" ] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "ya"
|
name = "ya"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,16 @@ repository = "https://github.com/sxyazi/yazi"
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
anyhow = "1.0.86"
|
anyhow = "1.0.86"
|
||||||
arc-swap = "1.7.1"
|
arc-swap = "1.7.1"
|
||||||
bitflags = "2.6.0"
|
bitflags = "2.6.0"
|
||||||
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.27.0"
|
ratatui = "0.27.0"
|
||||||
serde = { version = "1.0.204", features = [ "derive" ] }
|
serde = { version = "1.0.204", features = [ "derive" ] }
|
||||||
toml = { version = "0.8.15", features = [ "preserve_order" ] }
|
toml = { version = "0.8.15", features = [ "preserve_order" ] }
|
||||||
validator = { version = "0.18.1", features = [ "derive" ] }
|
validator = { version = "0.18.1", features = [ "derive" ] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,6 @@ tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_lev
|
||||||
|
|
||||||
[target."cfg(unix)".dependencies]
|
[target."cfg(unix)".dependencies]
|
||||||
libc = "0.2.155"
|
libc = "0.2.155"
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ tracing-subscriber = "0.3.18"
|
||||||
libc = "0.2.155"
|
libc = "0.2.155"
|
||||||
signal-hook-tokio = { version = "0.3.1", features = [ "futures-v0_3" ] }
|
signal-hook-tokio = { version = "0.3.1", features = [ "futures-v0_3" ] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "event-stream", "use-dev-tty" ] }
|
||||||
|
|
||||||
[target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies]
|
[target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies]
|
||||||
tikv-jemallocator = "0.5.4"
|
tikv-jemallocator = "0.5.4"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,3 +47,6 @@ uzers = "0.12.0"
|
||||||
|
|
||||||
[target."cfg(windows)".dependencies]
|
[target."cfg(windows)".dependencies]
|
||||||
clipboard-win = "5.4.0"
|
clipboard-win = "5.4.0"
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,6 @@ libc = "0.2.155"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
windows-sys = { version = "0.52.0", features = [ "Win32_Storage_FileSystem" ] }
|
windows-sys = { version = "0.52.0", features = [ "Win32_Storage_FileSystem" ] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue