Open settings pages from scoped search

This commit is contained in:
2026-05-07 21:03:29 -04:00
parent 3fe737adad
commit 3bcf4460ca
3 changed files with 75 additions and 1 deletions
@@ -4,7 +4,7 @@ use crate::{
CoreError,
navigation::{
downloads_url, history_url, move_tab_space_name, new_profile_name, new_space_name,
search_url, settings_url, space_icon, switch_profile_name,
search_url, settings_page_url, settings_url, space_icon, switch_profile_name,
},
};
@@ -44,6 +44,12 @@ impl BrowserCore {
self.command_query.clear();
}
}
CommandIntent::ScopedSearch { scope: CommandScope::Settings, query } => {
if let Some(url) = settings_page_url(query)? {
self.open_tab(url);
self.command_query.clear();
}
}
CommandIntent::ScopedSearch { scope: CommandScope::Archive, query }
if self.restore_archived_tab_match(query)?.is_some() =>
{