This commit is contained in:
sxyazi 2023-11-27 12:46:55 +08:00
parent 511ce675fb
commit e77fa7a804
No known key found for this signature in database
15 changed files with 16 additions and 16 deletions

View file

@ -1,7 +1,7 @@
use std::{ffi::OsString, fs, path::PathBuf, process}; use std::{ffi::OsString, fs, path::PathBuf, process};
use clap::Parser; use clap::Parser;
use yazi_shared::{current_cwd, expand_path}; use yazi_shared::fs::{current_cwd, expand_path};
use super::cli::Args; use super::cli::Args;
use crate::{Xdg, PREVIEW}; use crate::{Xdg, PREVIEW};

View file

@ -2,7 +2,7 @@ use std::path::PathBuf;
use serde::Deserialize; use serde::Deserialize;
use validator::Validate; use validator::Validate;
use yazi_shared::expand_path; use yazi_shared::fs::expand_path;
use crate::MERGED_YAZI; use crate::MERGED_YAZI;

View file

@ -2,7 +2,7 @@ use std::{path::{Path, PathBuf}, time::{self, SystemTime}};
use md5::{Digest, Md5}; use md5::{Digest, Md5};
use serde::Deserialize; use serde::Deserialize;
use yazi_shared::expand_path; use yazi_shared::fs::expand_path;
use crate::{xdg::Xdg, MERGED_YAZI}; use crate::{xdg::Xdg, MERGED_YAZI};

View file

@ -2,7 +2,7 @@ use std::path::PathBuf;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use validator::Validate; use validator::Validate;
use yazi_shared::expand_path; use yazi_shared::fs::expand_path;
use super::{Filetype, Icon, Style}; use super::{Filetype, Icon, Style};
use crate::{validation::check_validation, MERGED_THEME}; use crate::{validation::check_validation, MERGED_THEME};

View file

@ -1,6 +1,6 @@
use std::{env, path::PathBuf}; use std::{env, path::PathBuf};
use yazi_shared::expand_path; use yazi_shared::fs::expand_path;
pub(super) struct Xdg; pub(super) struct Xdg;

View file

@ -3,7 +3,7 @@ use std::{mem, time::Duration};
use tokio::{fs, pin}; use tokio::{fs, pin};
use tokio_stream::{wrappers::UnboundedReceiverStream, StreamExt}; use tokio_stream::{wrappers::UnboundedReceiverStream, StreamExt};
use yazi_config::{keymap::{Exec, KeymapLayer}, popup::InputOpt}; 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}; use crate::{completion::Completion, emit, manager::Manager, tab::Tab};

View file

@ -1,5 +1,5 @@
use yazi_config::keymap::Exec; 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}; use crate::{emit, external::{self, FzfOpt, ZoxideOpt}, tab::Tab, Event, BLOCKER};

View file

@ -1,5 +1,5 @@
use yazi_config::keymap::{Exec, KeymapLayer}; 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}; use crate::{emit, files::{File, FilesOp}, manager::Manager, tab::Tab};

View file

@ -4,7 +4,7 @@ use futures::{future::BoxFuture, FutureExt};
use parking_lot::RwLock; use parking_lot::RwLock;
use tokio::{fs, select, sync::{mpsc::{self, UnboundedReceiver}, oneshot}, time::sleep}; use tokio::{fs, select, sync::{mpsc::{self, UnboundedReceiver}, oneshot}, time::sleep};
use yazi_config::{open::Opener, TASKS}; 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 super::{workers::{File, FileOpDelete, FileOpLink, FileOpPaste, FileOpTrash, Precache, PrecacheOpMime, PrecacheOpSize, Process, ProcessOpOpen}, Running, TaskOp, TaskStage, TasksProgress};
use crate::emit; use crate::emit;

View file

@ -5,7 +5,7 @@ use futures::{future::BoxFuture, FutureExt};
use tokio::{fs, io::{self, ErrorKind::{AlreadyExists, NotFound}}, sync::mpsc}; use tokio::{fs, io::{self, ErrorKind::{AlreadyExists, NotFound}}, sync::mpsc};
use tracing::warn; use tracing::warn;
use yazi_config::TASKS; 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; use crate::tasks::TaskOp;

View file

@ -1,7 +1,9 @@
mod cha; mod cha;
mod fs; mod fns;
mod path;
mod url; mod url;
pub use cha::*; pub use cha::*;
pub use fs::*; pub use fns::*;
pub use path::*;
pub use url::*; pub use url::*;

View file

@ -3,12 +3,11 @@
mod chars; mod chars;
mod debounce; mod debounce;
mod defer; mod defer;
mod env;
mod errors; mod errors;
mod fns;
pub mod fs; pub mod fs;
mod mime; mod mime;
mod natsort; mod natsort;
mod path;
mod ro_cell; mod ro_cell;
pub mod term; pub mod term;
mod throttle; mod throttle;
@ -17,11 +16,10 @@ mod time;
pub use chars::*; pub use chars::*;
pub use debounce::*; pub use debounce::*;
pub use defer::*; pub use defer::*;
pub use env::*;
pub use errors::*; pub use errors::*;
pub use fns::*;
pub use mime::*; pub use mime::*;
pub use natsort::*; pub use natsort::*;
pub use path::*;
pub use ro_cell::*; pub use ro_cell::*;
pub use throttle::*; pub use throttle::*;
pub use time::*; pub use time::*;