Merge pull request #2387 from ghostty-org/push-pkurnzzzyxyx

Bind ctrl+tab and ctrl+shift+tab by default
This commit is contained in:
Mitchell Hashimoto
2024-10-05 06:37:17 -10:00
committed by GitHub

View File

@ -1822,6 +1822,18 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .adjust_selection = .end },
);
// Tabs common to all platforms
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .tab }, .mods = .{ .ctrl = true, .shift = true } },
.{ .previous_tab = {} },
);
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .tab }, .mods = .{ .ctrl = true } },
.{ .next_tab = {} },
);
// Windowing
if (comptime !builtin.target.isDarwin()) {
try result.keybind.set.put(
@ -1849,11 +1861,6 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .{ .translated = .t }, .mods = .{ .ctrl = true, .shift = true } },
.{ .new_tab = {} },
);
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .left }, .mods = .{ .ctrl = true, .shift = true } },
.{ .previous_tab = {} },
);
try result.keybind.set.put(
alloc,
.{ .key = .{ .translated = .right }, .mods = .{ .ctrl = true, .shift = true } },