#![allow(clippy::module_inception)] use yazi_shared::RoCell; mod boot; pub mod keymap; mod log; pub mod manager; pub mod open; mod pattern; pub mod plugins; pub mod popup; mod preset; pub mod preview; mod tasks; pub mod theme; mod validation; mod xdg; pub(crate) use pattern::*; pub(crate) use preset::*; pub(crate) use xdg::*; static MERGED_KEYMAP: RoCell = RoCell::new(); static MERGED_THEME: RoCell = RoCell::new(); static MERGED_YAZI: RoCell = RoCell::new(); pub static KEYMAP: RoCell = RoCell::new(); pub static LOG: RoCell = RoCell::new(); pub static MANAGER: RoCell = RoCell::new(); pub static OPEN: RoCell = RoCell::new(); pub static PLUGINS: RoCell = RoCell::new(); pub static PREVIEW: RoCell = RoCell::new(); pub static TASKS: RoCell = RoCell::new(); pub static THEME: RoCell = RoCell::new(); pub static INPUT: RoCell = RoCell::new(); pub static SELECT: RoCell = RoCell::new(); pub static BOOT: RoCell = RoCell::new(); pub fn init() { 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); PLUGINS.with(Default::default); PREVIEW.with(Default::default); TASKS.with(Default::default); THEME.with(Default::default); INPUT.with(Default::default); SELECT.with(Default::default); BOOT.with(Default::default); }