summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-09-02 16:03:51 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-09-02 16:03:51 -0700
commit4570356e577995578a7120c01837c24d918cf96c (patch)
treea3f53c0d437ab30592bdd6bce98639895c20b9a0 /src/config.zig
parent70bdc21d22bd2d3415bfe78a71f9bb6244772b58 (diff)
turn zoom into a toggle rather than an explicit zoom/unzoom
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/config.zig b/src/config.zig
index c99845ef8..7c111ca90 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -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;