From 38e8aac62266901c20ae8bc76ac08ab37966f873 Mon Sep 17 00:00:00 2001 From: Jason Rodney Hansen Date: Sat, 4 Jan 2025 16:35:05 -0700 Subject: [PATCH] Enable `Open item location` for Recents --- src/menu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu.rs b/src/menu.rs index 4f355d5..abd602a 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -163,7 +163,7 @@ pub fn context_menu<'a>( .push(menu_item(fl!("open-in-terminal"), Action::OpenTerminal).into()); } } - if matches!(tab.location, Location::Search(..)) { + if matches!(tab.location, Location::Search(..) | Location::Recents) { children.push( menu_item(fl!("open-item-location"), Action::OpenItemLocation).into(), ); @@ -260,7 +260,7 @@ pub fn context_menu<'a>( if selected_dir == 1 && selected == 1 || selected_dir == 0 { children.push(menu_item(fl!("open"), Action::Open).into()); } - if matches!(tab.location, Location::Search(..)) { + if matches!(tab.location, Location::Search(..) | Location::Recents) { children.push( menu_item(fl!("open-item-location"), Action::OpenItemLocation).into(), );