glide: add cmd+opt+t to open a tab at the end of the strip
Assisted-by: Claude Opus 4.8 via Claude Code
diff --git a/.config/glide/glide.ts b/.config/glide/glide.ts
index e3e787a1..80af0b44 100644
--- a/.config/glide/glide.ts
+++ b/.config/glide/glide.ts
@@ -252,6 +252,14 @@ glide.excmds.create(
},
);
+// cmd+opt+t: open a new tab at the end of the tab strip (overrides insertAfterCurrent for this call)
+glide.keymaps.set("normal", "<D-A-t>", async () => {
+ const tabs = await browser.tabs.query({});
+ const lastIndex = tabs.reduce((max, t) => (t.index > max ? t.index : max), -1);
+ await browser.tabs.create({ active: true, index: lastIndex + 1 });
+},
+ { description: "Open a new tab at the end of the tab strip" });
+
// mash+o (cmd+ctrl+alt+o): send the current tab to the "main" window — the
// normal window with the most tabs — and drop it at the end of that strip.
glide.keymaps.set("normal", "<C-A-D-o>", async ({ tab_id }) => {