feat: add :x
alias for :wq
in helix mode
This commit is contained in:
parent
7c49138eac
commit
9db6bf56c1
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ const cmds_ = struct {
|
||||||
}
|
}
|
||||||
pub const wq_meta: Meta = .{ .description = "wq (write/save file and quit)" };
|
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 {
|
pub fn o(_: *void, _: Ctx) Result {
|
||||||
try cmd("open_file", .{});
|
try cmd("open_file", .{});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue