refactor: new yazi-tty crate (#3623)

This commit is contained in:
三咲雅 misaki masa 2026-01-27 22:03:48 +08:00 committed by GitHub
parent 6150571738
commit e0911f2507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 293 additions and 131 deletions

View file

@ -17,6 +17,7 @@ yazi-fs = { path = "../yazi-fs", version = "26.1.22" }
yazi-macro = { path = "../yazi-macro", version = "26.1.22" }
yazi-shared = { path = "../yazi-shared", version = "26.1.22" }
yazi-term = { path = "../yazi-term", version = "26.1.22" }
yazi-tty = { path = "../yazi-tty", version = "26.1.22" }
# External dependencies
anyhow = { workspace = true }

View file

@ -5,7 +5,7 @@ yazi_macro::mod_flat!(icon layout pattern platform preset priority style utils y
use std::io::{Read, Write};
use yazi_shared::{RoCell, SyncCell};
use yazi_term::tty::TTY;
use yazi_tty::TTY;
pub static YAZI: RoCell<yazi::Yazi> = RoCell::new();
pub static KEYMAP: RoCell<keymap::Keymap> = RoCell::new();