yazi/yazi-core/src/tab/commands/enter.rs

9 lines
200 B
Rust

use yazi_shared::event::Cmd;
use crate::tab::Tab;
impl Tab {
pub fn enter(&mut self, _: Cmd) {
self.current.hovered().filter(|h| h.is_dir()).map(|h| h.url.to_regular()).map(|u| self.cd(u));
}
}