new_tab action

This commit is contained in:
Mitchell Hashimoto
2022-11-16 21:17:41 -08:00
parent c6f7eab601
commit 8ac90d33e6
4 changed files with 85 additions and 10 deletions

View File

@@ -217,7 +217,12 @@ pub const Config = struct {
.{ .key = .w, .mods = .{ .super = true } },
.{ .close_window = {} },
);
if (builtin.os.tag == .macos) {
if (comptime builtin.target.isDarwin()) {
try result.keybind.set.put(
alloc,
.{ .key = .t, .mods = .{ .super = true } },
.{ .new_tab = {} },
);
try result.keybind.set.put(
alloc,
.{ .key = .q, .mods = .{ .super = true } },