Bind ctrl+tab and ctrl+shift+tab by default

This matches default behaviors on native apps for macOS and GTK so we
should always bind it.
This commit is contained in:
Mitchell Hashimoto
2024-10-05 09:34:21 -07:00
parent 23f81f8084
commit a278022e5d

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 } },