turn zoom into a toggle rather than an explicit zoom/unzoom

This commit is contained in:
Mitchell Hashimoto
2023-09-02 16:03:51 -07:00
parent 70bdc21d22
commit 4570356e57
8 changed files with 27 additions and 50 deletions

View File

@@ -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;