feat: new duplicate DDS event for copying files (#3456)

This commit is contained in:
三咲雅 misaki masa 2025-12-24 13:28:38 +08:00 committed by GitHub
parent 6e3c96289e
commit 8c81172a19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 441 additions and 158 deletions

View file

@ -19,7 +19,7 @@ yazi-shim = { path = "../yazi-shim", version = "25.9.15" }
# External dependencies
anyhow = { workspace = true }
arc-swap = "1.7.1"
arc-swap = "1.8.0"
bitflags = { workspace = true }
dirs = { workspace = true }
foldhash = { workspace = true }

View file

@ -66,7 +66,7 @@ fn expand_variables(p: PathCow) -> PathCow {
});
match (b, p.kind()) {
(Cow::Borrowed(_), _) => p.into(),
(Cow::Borrowed(_), _) => p,
(Cow::Owned(b), PathKind::Os) => {
PathBufDyn::Os(std::path::PathBuf::from_wtf8_vec(b).expect("valid WTF-8 path")).into()
}