yazi_core/input/input.rs
1use std::ops::{Deref, DerefMut};
2
3use yazi_config::popup::Position;
4
5#[derive(Default)]
6pub struct Input {
7 pub(super) inner: yazi_widgets::input::Input,
8
9 pub visible: bool,
10 pub title: String,
11 pub position: Position,
12}
13
14impl Deref for Input {
15 type Target = yazi_widgets::input::Input;
16
17 fn deref(&self) -> &Self::Target { &self.inner }
18}
19
20impl DerefMut for Input {
21 fn deref_mut(&mut self) -> &mut Self::Target { &mut self.inner }
22}