glide: add <C-w>j to split with the next tab
Assisted-by: Claude Opus 4.8 via Claude Code
diff --git a/.config/glide/unstable.glide.ts b/.config/glide/unstable.glide.ts
index bea40b52..f2dd70e2 100644
--- a/.config/glide/unstable.glide.ts
+++ b/.config/glide/unstable.glide.ts
@@ -12,6 +12,21 @@ glide.keymaps.set(
},
);
+glide.keymaps.set(
+ "normal",
+ "<C-w>j",
+ async ({ tab_id }) => {
+ const allTabs = await glide.tabs.query({});
+ const currentIndex = allTabs.findIndex((t) => t.id === tab_id);
+ const next = allTabs[currentIndex + 1];
+ if (next?.id == null) return;
+ glide.unstable.split_views.create([tab_id, next.id]);
+ },
+ {
+ description: "Split view with the next tab",
+ },
+);
+
glide.keymaps.set(
"normal",
"<C-h>",