From 9db6bf56c13cc176f62d93174158b6d177c42622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20T=C3=A1mara?= Date: Thu, 25 Sep 2025 08:32:23 -0500 Subject: [PATCH] feat: add `:x` alias for `:wq` in helix mode --- src/tui/mode/helix.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tui/mode/helix.zig b/src/tui/mode/helix.zig index 7b56c3d..7b093da 100644 --- a/src/tui/mode/helix.zig +++ b/src/tui/mode/helix.zig @@ -50,6 +50,11 @@ const cmds_ = struct { } pub const wq_meta: Meta = .{ .description = "wq (write/save file and quit)" }; + pub fn x(_: *void, _: Ctx) Result { + try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } })); + } + pub const x_meta: Meta = .{ .description = "x (write/save file and quit)" }; + pub fn o(_: *void, _: Ctx) Result { try cmd("open_file", .{}); }