From 8209b38364ef60ed3293142d680a47b0a1a5ce58 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 3 Jun 2026 16:43:59 -0700 Subject: glide: Fix adding new groups If there are no groups at all, then the execute method is never added to any option and will never run. Add a dummy group just in case. --- glide/.config/glide/glide.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) => ({ -- cgit v1.3-2-g0d8e