mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
511ce675fb
commit
e77fa7a804
15 changed files with 16 additions and 16 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::{ffi::OsString, fs, path::PathBuf, process};
|
||||
|
||||
use clap::Parser;
|
||||
use yazi_shared::{current_cwd, expand_path};
|
||||
use yazi_shared::fs::{current_cwd, expand_path};
|
||||
|
||||
use super::cli::Args;
|
||||
use crate::{Xdg, PREVIEW};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use std::path::PathBuf;
|
|||
|
||||
use serde::Deserialize;
|
||||
use validator::Validate;
|
||||
use yazi_shared::expand_path;
|
||||
use yazi_shared::fs::expand_path;
|
||||
|
||||
use crate::MERGED_YAZI;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use std::{path::{Path, PathBuf}, time::{self, SystemTime}};
|
|||
|
||||
use md5::{Digest, Md5};
|
||||
use serde::Deserialize;
|
||||
use yazi_shared::expand_path;
|
||||
use yazi_shared::fs::expand_path;
|
||||
|
||||
use crate::{xdg::Xdg, MERGED_YAZI};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use std::path::PathBuf;
|
|||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use validator::Validate;
|
||||
use yazi_shared::expand_path;
|
||||
use yazi_shared::fs::expand_path;
|
||||
|
||||
use super::{Filetype, Icon, Style};
|
||||
use crate::{validation::check_validation, MERGED_THEME};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use std::{env, path::PathBuf};
|
||||
|
||||
use yazi_shared::expand_path;
|
||||
use yazi_shared::fs::expand_path;
|
||||
|
||||
pub(super) struct Xdg;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use std::{mem, time::Duration};
|
|||
use tokio::{fs, pin};
|
||||
use tokio_stream::{wrappers::UnboundedReceiverStream, StreamExt};
|
||||
use yazi_config::{keymap::{Exec, KeymapLayer}, popup::InputOpt};
|
||||
use yazi_shared::{expand_path, fs::Url, Debounce, InputError};
|
||||
use yazi_shared::{fs::{expand_path, Url}, Debounce, InputError};
|
||||
|
||||
use crate::{completion::Completion, emit, manager::Manager, tab::Tab};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use yazi_config::keymap::Exec;
|
||||
use yazi_shared::{ends_with_slash, Defer};
|
||||
use yazi_shared::{fs::ends_with_slash, Defer};
|
||||
|
||||
use crate::{emit, external::{self, FzfOpt, ZoxideOpt}, tab::Tab, Event, BLOCKER};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use yazi_config::keymap::{Exec, KeymapLayer};
|
||||
use yazi_shared::{expand_path, fs::Url};
|
||||
use yazi_shared::fs::{expand_path, Url};
|
||||
|
||||
use crate::{emit, files::{File, FilesOp}, manager::Manager, tab::Tab};
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use futures::{future::BoxFuture, FutureExt};
|
|||
use parking_lot::RwLock;
|
||||
use tokio::{fs, select, sync::{mpsc::{self, UnboundedReceiver}, oneshot}, time::sleep};
|
||||
use yazi_config::{open::Opener, TASKS};
|
||||
use yazi_shared::{fs::Url, unique_path, Throttle};
|
||||
use yazi_shared::{fs::{unique_path, Url}, Throttle};
|
||||
|
||||
use super::{workers::{File, FileOpDelete, FileOpLink, FileOpPaste, FileOpTrash, Precache, PrecacheOpMime, PrecacheOpSize, Process, ProcessOpOpen}, Running, TaskOp, TaskStage, TasksProgress};
|
||||
use crate::emit;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use futures::{future::BoxFuture, FutureExt};
|
|||
use tokio::{fs, io::{self, ErrorKind::{AlreadyExists, NotFound}}, sync::mpsc};
|
||||
use tracing::warn;
|
||||
use yazi_config::TASKS;
|
||||
use yazi_shared::{fs::{calculate_size, copy_with_progress, Url}, path_relative_to};
|
||||
use yazi_shared::fs::{calculate_size, copy_with_progress, path_relative_to, Url};
|
||||
|
||||
use crate::tasks::TaskOp;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
mod cha;
|
||||
mod fs;
|
||||
mod fns;
|
||||
mod path;
|
||||
mod url;
|
||||
|
||||
pub use cha::*;
|
||||
pub use fs::*;
|
||||
pub use fns::*;
|
||||
pub use path::*;
|
||||
pub use url::*;
|
||||
|
|
|
|||
|
|
@ -3,12 +3,11 @@
|
|||
mod chars;
|
||||
mod debounce;
|
||||
mod defer;
|
||||
mod env;
|
||||
mod errors;
|
||||
mod fns;
|
||||
pub mod fs;
|
||||
mod mime;
|
||||
mod natsort;
|
||||
mod path;
|
||||
mod ro_cell;
|
||||
pub mod term;
|
||||
mod throttle;
|
||||
|
|
@ -17,11 +16,10 @@ mod time;
|
|||
pub use chars::*;
|
||||
pub use debounce::*;
|
||||
pub use defer::*;
|
||||
pub use env::*;
|
||||
pub use errors::*;
|
||||
pub use fns::*;
|
||||
pub use mime::*;
|
||||
pub use natsort::*;
|
||||
pub use path::*;
|
||||
pub use ro_cell::*;
|
||||
pub use throttle::*;
|
||||
pub use time::*;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue