diff options
| author | 2026-03-24 11:32:13 -0700 | |
|---|---|---|
| committer | 2026-03-30 10:28:30 -0700 | |
| commit | 3db9818e692ea9cc88f778a950368c8aa072c77e (patch) | |
| tree | d85c5c01c410291e47275b4c0e623a86bcbc968c | |
| parent | 9dca41239d2413aace2aabe953ffed8b4452da1a (diff) | |
| download | new-dotfiles-3db9818e692ea9cc88f778a950368c8aa072c77e.tar.gz new-dotfiles-3db9818e692ea9cc88f778a950368c8aa072c77e.zip | |
glide: Show current window's tabs count in status bar
| -rw-r--r-- | glide/.config/glide/glide.ts | 7 |
1 files 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", "<leader>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; |
