macos: navigate splits directionally

This commit is contained in:
Mitchell Hashimoto
2023-03-11 17:55:31 -08:00
parent 04c38ef3b0
commit 3976da8149
4 changed files with 79 additions and 20 deletions

View File

@@ -321,6 +321,26 @@ pub const Config = struct {
.{ .key = .right_bracket, .mods = .{ .super = true } },
.{ .goto_split = .next },
);
try result.keybind.set.put(
alloc,
.{ .key = .up, .mods = .{ .super = true, .alt = true } },
.{ .goto_split = .top },
);
try result.keybind.set.put(
alloc,
.{ .key = .down, .mods = .{ .super = true, .alt = true } },
.{ .goto_split = .bottom },
);
try result.keybind.set.put(
alloc,
.{ .key = .left, .mods = .{ .super = true, .alt = true } },
.{ .goto_split = .left },
);
try result.keybind.set.put(
alloc,
.{ .key = .right, .mods = .{ .super = true, .alt = true } },
.{ .goto_split = .right },
);
{
// Cmd+N for goto tab N
const start = @enumToInt(inputpkg.Key.one);