From 1f1cfe3566ee2ac02d150f0b0cb0a37765e350ef Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 8 Mar 2026 10:59:43 -0700 Subject: glide: Show current/total tabs in status bar --- glide/.config/glide/glide.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts index aab1e2a..a7da50a 100644 --- a/glide/.config/glide/glide.ts +++ b/glide/.config/glide/glide.ts @@ -596,6 +596,7 @@ async function update_status_bar() { try { const tabs = await glide.tabs.query({}); const active_tab = await glide.tabs.active(); + const tab_index = tabs.findIndex(t => t.id == active_tab.id); const url = active_tab.url; const title = active_tab.title || "Untitled"; @@ -605,7 +606,7 @@ async function update_status_bar() { display_url = display_url.substring(0, 47) + "..."; } - tabs_container.textContent = `Tabs: ${tabs.length}`; + tabs_container.textContent = `[${tab_index + 1}/${tabs.length}]`; right.textContent = `${title} | ${display_url}`; } catch (e) { tabs_container.textContent = e; -- cgit v1.3-2-g0d8e