diff --git a/src/tab.rs b/src/tab.rs index 2d8b4f3..5339e72 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -1940,6 +1940,13 @@ impl Tab { }) } + let mouse_area = if let Location::Path(_) = &self.location { + mouse_area + .on_middle_press(move |_| Message::OpenInNewTab(ancestor.to_path_buf())) + } else { + mouse_area + }; + children.push(mouse_area.into()); if found_home {