diff --git a/crates/ely_browser_core/src/state/commands.rs b/crates/ely_browser_core/src/state/commands.rs
index 0fb0128..71cc928 100644
--- a/crates/ely_browser_core/src/state/commands.rs
+++ b/crates/ely_browser_core/src/state/commands.rs
@@ -213,6 +213,9 @@ impl BrowserCore {
Ok(self.set_active_tab_group_collapsed(false)?.is_some())
}
"ungroup-tab" | "ungroup tab" => self.ungroup_active_tab(),
+ "sleep-tab-group" | "sleep tab group" | "discard-tab-group" | "discard tab group" => {
+ Ok(self.discard_active_tab_group()?.is_some())
+ }
"downloads" | "open-downloads" | "open downloads" => {
self.open_tab(downloads_url()?);
Ok(true)
diff --git a/crates/ely_browser_core/src/state/tab_groups.rs b/crates/ely_browser_core/src/state/tab_groups.rs
index 60974af..f733c59 100644
--- a/crates/ely_browser_core/src/state/tab_groups.rs
+++ b/crates/ely_browser_core/src/state/tab_groups.rs
@@ -80,6 +80,19 @@ impl BrowserCore {
Ok(true)
}
+ pub fn discard_active_tab_group(&mut self) -> Result