aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glide/.config/glide/glide.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts
index 6bad42c..af5d1bf 100644
--- a/glide/.config/glide/glide.ts
+++ b/glide/.config/glide/glide.ts
@@ -377,7 +377,12 @@ const group_tab = glide.excmds.create({
name: 'group_tab',
description: 'Add the current tab to a group.'
}, async ({ tab_id }) => {
- const groups = await browser.tabGroups.query({});
+ let groups = await browser.tabGroups.query({});
+
+ if (groups.length === 0) {
+ groups = [{title: ''}];
+ }
+
glide.commandline.show({
title: "group",
options: groups.map((group) => ({