From 3db9818e692ea9cc88f778a950368c8aa072c77e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 24 Mar 2026 11:32:13 -0700 Subject: glide: Show current window's tabs count in status bar --- glide/.config/glide/glide.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts index bb9863c..3212891 100644 --- a/glide/.config/glide/glide.ts +++ b/glide/.config/glide/glide.ts @@ -326,8 +326,6 @@ glide.keymaps.set("normal", "t", async () => { }); }, async execute({ input: input }) { - - if (entry.title.toLowerCase().includes(input.toLowerCase())) { const tab = await glide.tabs.get_first({ url: entry.url, @@ -599,7 +597,10 @@ async function update_status_bar() { } try { - const tabs = await glide.tabs.query({}); + const current_window = await browser.windows.getCurrent(); + const tabs = await browser.tabs.query({ + windowId: current_window.id, + }); const active_tab = await glide.tabs.active(); const tab_index = tabs.findIndex(t => t.id == active_tab.id); const url = active_tab.url; -- cgit v1.3-2-g0d8e