mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
9 lines
200 B
Rust
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));
|
|
}
|
|
}
|