mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-15 06:16:11 +00:00
turn zoom into a toggle rather than an explicit zoom/unzoom
This commit is contained in:
@@ -563,6 +563,13 @@ pub const Config = struct {
|
||||
.{ .toggle_fullscreen = {} },
|
||||
);
|
||||
|
||||
// Toggle zoom a split
|
||||
try result.keybind.set.put(
|
||||
alloc,
|
||||
.{ .key = .enter, .mods = ctrlOrSuper(.{ .shift = true }) },
|
||||
.{ .toggle_split_zoom = {} },
|
||||
);
|
||||
|
||||
// Mac-specific keyboard bindings.
|
||||
if (comptime builtin.target.isDarwin()) {
|
||||
try result.keybind.set.put(
|
||||
@@ -682,17 +689,6 @@ pub const Config = struct {
|
||||
.{ .key = .right, .mods = .{ .super = true, .alt = true } },
|
||||
.{ .goto_split = .right },
|
||||
);
|
||||
|
||||
try result.keybind.set.put(
|
||||
alloc,
|
||||
.{ .key = .equal, .mods = .{ .super = true, .shift = true } },
|
||||
.{ .zoom_split = {} },
|
||||
);
|
||||
try result.keybind.set.put(
|
||||
alloc,
|
||||
.{ .key = .minus, .mods = .{ .super = true, .shift = true } },
|
||||
.{ .unzoom_split = {} },
|
||||
);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user