Switch spaces from command scope

This commit is contained in:
2026-05-07 20:25:11 -04:00
parent 19d928859c
commit dcc4883797
3 changed files with 62 additions and 1 deletions
+11
View File
@@ -338,6 +338,17 @@ impl BrowserCore {
self.command_query.clear();
}
}
CommandIntent::ScopedSearch { scope: CommandScope::Spaces, query } => {
let query = query.trim().to_lowercase();
if let Some(space_id) = self.spaces.iter().find_map(|space| {
(space.name().to_lowercase().contains(&query)
|| space.icon().to_lowercase().contains(&query))
.then(|| space.id().clone())
}) {
self.select_space(&space_id)?;
self.command_query.clear();
}
}
CommandIntent::ScopedSearch { scope: CommandScope::Archive, query }
if self.restore_archived_tab_match(query)?.is_some() =>
{