input: new_split binding, can parse enums

This commit is contained in:
Mitchell Hashimoto
2023-03-08 08:56:17 -08:00
parent 15b7e7fcd7
commit 8ce6f349f8
3 changed files with 61 additions and 2 deletions

View File

@@ -296,6 +296,16 @@ pub const Config = struct {
.{ .key = .right_bracket, .mods = .{ .super = true, .shift = true } },
.{ .next_tab = {} },
);
try result.keybind.set.put(
alloc,
.{ .key = .d, .mods = .{ .super = true } },
.{ .new_split = .right },
);
try result.keybind.set.put(
alloc,
.{ .key = .d, .mods = .{ .super = true, .shift = true } },
.{ .new_split = .down },
);
{
// Cmd+N for goto tab N
const start = @enumToInt(inputpkg.Key.one);