From f6bded5f3642995f5f0bda6738fcc695e63834c6 Mon Sep 17 00:00:00 2001 From: suri-codes Date: Thu, 13 Aug 2026 17:50:13 -0700 Subject: [PATCH] feat: add terminal binds for zed --- modules/home/shells/fish/default.nix | 4 +--- modules/home/tools/zed/config/keymap.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/home/shells/fish/default.nix b/modules/home/shells/fish/default.nix index afbd4d2..ba5b1ca 100644 --- a/modules/home/shells/fish/default.nix +++ b/modules/home/shells/fish/default.nix @@ -88,9 +88,7 @@ in jjc = "jj commit "; jju = "jj undo"; - jjr = "jj re"; - - jjrb = "jj rebase"; + jjr = "jj rebase"; jjdf = "jj diff"; diff --git a/modules/home/tools/zed/config/keymap.json b/modules/home/tools/zed/config/keymap.json index 0f43f42..566116e 100644 --- a/modules/home/tools/zed/config/keymap.json +++ b/modules/home/tools/zed/config/keymap.json @@ -40,6 +40,17 @@ "alt-b": "workspace::ToggleLeftDock", // file explorer (was ctrl-b, which shadowed vim::PageUp; frees native alt-b = MoveToStartOfLargerSyntaxNode) "alt-r": "workspace::ToggleRightDock" // right dock (was Pane's search::ToggleRegex, unused) } + }, + + // --- terminal tab management, same alt- namespace as the dock toggles above --- + { + "context": "Terminal", + "bindings": { + "alt-n": "workspace::NewTerminal", // new tab (was ctrl-~, an awkward reach) + "alt-x": ["pane::CloseActiveItem", { "close_pinned": false }], // close tab (was ctrl-shift-w only) + "alt-]": "pane::ActivateNextItem", // next tab (was ctrl-pagedown only) + "alt-[": "pane::ActivatePreviousItem" // prev tab (was ctrl-pageup only) + } } // project picker (ctrl-p = file_finder::Toggle) and project debug -- 2.51.2