Skip to content

Commit

Permalink
Merge pull request #2387 from ghostty-org/push-pkurnzzzyxyx
Browse files Browse the repository at this point in the history
Bind ctrl+tab and ctrl+shift+tab by default
  • Loading branch information
mitchellh authored Oct 5, 2024
2 parents 23f81f8 + a278022 commit a36bdd9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/config/Config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 } },
Expand Down

0 comments on commit a36bdd9

Please sign in to comment.