From 920b90ba1aaf0e0535d2c89c36b93f70a2b46d3c Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Sun, 23 Jul 2023 14:02:39 +0200 Subject: [PATCH] config: change default keybind for goto-split on non-Darwin Feel free to ignore or close this, because this is personal and if I could figure out the syntax, I'm sure I could overwrite the keybindings in the config myself. But here's my case: `Ctrl+[` sends escape and I use that instead of `Esc` because it's easier to reach (capslock is remapped to `ctrl`, so `ctrl+[` is homerow only). Kitty uses it's own "kittymod" combo for a lot of keybindings and for the equivalent of these two, it uses `Ctrl+shift`. That's already taken by other keybindings, so I added `.super` here. Again: feel free to ignore. Personal preference. If you close this PR, I'll have to tweak my config on Linux. --- src/config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.zig b/src/config.zig index e70ff7946..86ea3a7ef 100644 --- a/src/config.zig +++ b/src/config.zig @@ -446,12 +446,12 @@ pub const Config = struct { ); try result.keybind.set.put( alloc, - .{ .key = .left_bracket, .mods = .{ .ctrl = true } }, + .{ .key = .left_bracket, .mods = .{ .ctrl = true, .super = true } }, .{ .goto_split = .previous }, ); try result.keybind.set.put( alloc, - .{ .key = .right_bracket, .mods = .{ .ctrl = true } }, + .{ .key = .right_bracket, .mods = .{ .ctrl = true, .super = true } }, .{ .goto_split = .next }, ); try result.keybind.set.put(