Restore archived tabs from command scope

This commit is contained in:
2026-05-07 19:59:55 -04:00
parent e0eb5b51b2
commit 75e17fc70f
4 changed files with 107 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ use crate::{DomainError, UrlText};
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum CommandScope {
Archive,
Tabs,
Bookmarks,
History,
@@ -43,6 +44,7 @@ impl CommandIntent {
fn parse_scope(value: &str) -> Option<(CommandScope, &str)> {
let (scope, query) = value.split_once(' ')?;
let scope = match scope {
"@archive" => CommandScope::Archive,
"@tabs" => CommandScope::Tabs,
"@bookmarks" => CommandScope::Bookmarks,
"@history" => CommandScope::History,