config: close_tab on macOS should be cmd+opt+w to match iTerm2

This commit is contained in:
Mitchell Hashimoto
2025-01-08 11:47:24 -08:00
parent 0d679951bc
commit e4033ca4df

View File

@ -2660,6 +2660,11 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .{ .translated = .w }, .mods = .{ .super = true } }, .{ .key = .{ .translated = .w }, .mods = .{ .super = true } },
.{ .close_surface = {} }, .{ .close_surface = {} },
); );
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .w }, .mods = .{ .super = true, .alt = true } },
.{ .close_tab = {} },
);
try result.keybind.set.put( try result.keybind.set.put(
alloc, alloc,
.{ .key = .{ .translated = .w }, .mods = .{ .super = true, .shift = true } }, .{ .key = .{ .translated = .w }, .mods = .{ .super = true, .shift = true } },
@ -2675,11 +2680,6 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .{ .translated = .t }, .mods = .{ .super = true } }, .{ .key = .{ .translated = .t }, .mods = .{ .super = true } },
.{ .new_tab = {} }, .{ .new_tab = {} },
); );
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .w }, .mods = .{ .super = true } },
.{ .close_tab = {} },
);
try result.keybind.set.put( try result.keybind.set.put(
alloc, alloc,
.{ .key = .{ .translated = .left_bracket }, .mods = .{ .super = true, .shift = true } }, .{ .key = .{ .translated = .left_bracket }, .mods = .{ .super = true, .shift = true } },