summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-22 16:53:55 +0200
committerMel <mel@rnrd.eu>2025-07-22 16:53:55 +0200
commitd8e369a049d96c4cb638379f92f2baeb707d685a (patch)
treef7fefd3da6893ae63c520355b00e0645a617faca
parent392ad01b2bd4d18070334b3972853f3c201bf657 (diff)
downloadminerals-d8e369a049d96c4cb638379f92f2baeb707d685a.tar.zst
minerals-d8e369a049d96c4cb638379f92f2baeb707d685a.zip
Remap some Zed keybinds for convenience
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--modules/home/zed.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/home/zed.nix b/modules/home/zed.nix
index 940001e..0cf4233 100644
--- a/modules/home/zed.nix
+++ b/modules/home/zed.nix
@@ -153,5 +153,30 @@ in
metrics = false;
};
};
+
+ userKeymaps = [
+ {
+ context = "Pane";
+ bindings = {
+ # easy jump list (i find both vscode + vim jump list keybinds hard)
+ "alt-left" = "pane::GoBack";
+ "alt-right" = "pane::GoForward";
+ };
+ }
+ {
+ context = "Workspace";
+ bindings = {
+ # rebind from ctrl-j so the shortcut doesn't change depending on
+ # if terminal is up or not.
+ "ctrl-`" = "workspace::ToggleBottomDock";
+ };
+ }
+ {
+ context = "Editor";
+ bindings = {
+ "ctrl-alt-f" = "editor::Format";
+ };
+ }
+ ];
};
}