mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
69 lines
1.9 KiB
Rust
69 lines
1.9 KiB
Rust
#![allow(clippy::module_inception)]
|
|
|
|
use yazi_shared::RoCell;
|
|
|
|
mod boot;
|
|
pub mod keymap;
|
|
mod layout;
|
|
mod log;
|
|
pub mod manager;
|
|
pub mod open;
|
|
mod pattern;
|
|
pub mod plugin;
|
|
pub mod popup;
|
|
mod preset;
|
|
pub mod preview;
|
|
mod priority;
|
|
mod tasks;
|
|
pub mod theme;
|
|
mod validation;
|
|
pub mod which;
|
|
mod xdg;
|
|
|
|
pub use layout::*;
|
|
pub(crate) use pattern::*;
|
|
pub(crate) use preset::*;
|
|
pub use priority::*;
|
|
pub(crate) use xdg::*;
|
|
|
|
pub static ARGS: RoCell<boot::Args> = RoCell::new();
|
|
pub static BOOT: RoCell<boot::Boot> = RoCell::new();
|
|
pub static LAYOUT: RoCell<arc_swap::ArcSwap<Layout>> = RoCell::new();
|
|
|
|
static MERGED_KEYMAP: RoCell<String> = RoCell::new();
|
|
static MERGED_THEME: RoCell<String> = RoCell::new();
|
|
static MERGED_YAZI: RoCell<String> = RoCell::new();
|
|
|
|
pub static KEYMAP: RoCell<keymap::Keymap> = RoCell::new();
|
|
pub static LOG: RoCell<log::Log> = RoCell::new();
|
|
pub static MANAGER: RoCell<manager::Manager> = RoCell::new();
|
|
pub static OPEN: RoCell<open::Open> = RoCell::new();
|
|
pub static PLUGIN: RoCell<plugin::Plugin> = RoCell::new();
|
|
pub static PREVIEW: RoCell<preview::Preview> = RoCell::new();
|
|
pub static TASKS: RoCell<tasks::Tasks> = RoCell::new();
|
|
pub static THEME: RoCell<theme::Theme> = RoCell::new();
|
|
pub static INPUT: RoCell<popup::Input> = RoCell::new();
|
|
pub static SELECT: RoCell<popup::Select> = RoCell::new();
|
|
pub static WHICH: RoCell<which::Which> = RoCell::new();
|
|
|
|
pub fn init() {
|
|
ARGS.with(Default::default);
|
|
BOOT.with(Default::default);
|
|
LAYOUT.with(Default::default);
|
|
|
|
MERGED_KEYMAP.with(Preset::keymap);
|
|
MERGED_THEME.with(Preset::theme);
|
|
MERGED_YAZI.with(Preset::yazi);
|
|
|
|
KEYMAP.with(Default::default);
|
|
LOG.with(Default::default);
|
|
MANAGER.with(Default::default);
|
|
OPEN.with(Default::default);
|
|
PLUGIN.with(Default::default);
|
|
PREVIEW.with(Default::default);
|
|
TASKS.with(Default::default);
|
|
THEME.with(Default::default);
|
|
INPUT.with(Default::default);
|
|
SELECT.with(Default::default);
|
|
WHICH.with(Default::default);
|
|
}
|