1 2 3 4 5 6 7 8 9
use yazi_shared::event::CmdCow; use crate::tab::Tab; impl Tab { pub fn enter(&mut self, _: CmdCow) { self.hovered().filter(|h| h.is_dir()).map(|h| h.url.to_regular()).map(|u| self.cd(u)); } }