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
+2
View File
@@ -3,6 +3,7 @@ use crate::{DomainError, UrlText};
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum CommandScope {
Archive,
Spaces,
Tabs,
Bookmarks,
History,
@@ -45,6 +46,7 @@ fn parse_scope(value: &str) -> Option<(CommandScope, &str)> {
let (scope, query) = value.split_once(' ')?;
let scope = match scope {
"@archive" => CommandScope::Archive,
"@spaces" => CommandScope::Spaces,
"@tabs" => CommandScope::Tabs,
"@bookmarks" => CommandScope::Bookmarks,
"@history" => CommandScope::History,