diff options
| author | 2026-03-08 10:59:43 -0700 | |
|---|---|---|
| committer | 2026-03-08 14:25:30 -0700 | |
| commit | 1f1cfe3566ee2ac02d150f0b0cb0a37765e350ef (patch) | |
| tree | d8ed98a82f7910273f6fbb5fe514a51b77e0dfdd | |
| parent | 39f995ed88cd27ab898b30ed452b30cbbe44a0b1 (diff) | |
| download | new-dotfiles-1f1cfe3566ee2ac02d150f0b0cb0a37765e350ef.tar.gz new-dotfiles-1f1cfe3566ee2ac02d150f0b0cb0a37765e350ef.zip | |
glide: Show current/total tabs in status bar
| -rw-r--r-- | glide/.config/glide/glide.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
