Switch spaces from command scope
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user