feat: add :qa!
aliase for quit_without_saving
in vim mode
This commit is contained in:
parent
6c385bc35a
commit
7c49138eac
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ const cmds_ = struct {
|
||||||
}
|
}
|
||||||
pub const @"q!_meta": Meta = .{ .description = "q! (quit without saving)" };
|
pub const @"q!_meta": Meta = .{ .description = "q! (quit without saving)" };
|
||||||
|
|
||||||
|
pub fn @"qa!"(_: *void, _: Ctx) Result {
|
||||||
|
try cmd("quit_without_saving", .{});
|
||||||
|
}
|
||||||
|
pub const @"qa!_meta": Meta = .{ .description = "qa! (quit without saving anything)" };
|
||||||
|
|
||||||
pub fn wq(_: *void, _: Ctx) Result {
|
pub fn wq(_: *void, _: Ctx) Result {
|
||||||
try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } }));
|
try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } }));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue