glide: allow ⌘⌥T to open a tab at the end in insert mode
Assisted-by: Claude Opus 5.5 via Claude Code
change uzuzqwyomkzytmrkkqqwnzrrnyltozzv
commit d57d18a143eb6976a2c0a955a139f640cbe05273
author Alpha Chen <alpha@kejadlen.dev>
date
parent ssnsuunp
diff --git a/.config/glide/glide.ts b/.config/glide/glide.ts
index 65d7be21..6b2b2f1c 100644
--- a/.config/glide/glide.ts
+++ b/.config/glide/glide.ts
@@ -307,7 +307,7 @@ 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 () => {
+glide.keymaps.set(["normal", "insert"], "<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 });