fix: make helix mode save file commands easier to find

closes #76
This commit is contained in:
CJ van den Berg 2024-12-12 17:38:50 +01:00
parent 6d1648a761
commit 87e1ac1eef
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -27,7 +27,7 @@ const cmds_ = struct {
pub fn w(_: *void, _: Ctx) Result {
try cmd("save_file", .{});
}
pub const w_meta = .{ .description = "w (write file)" };
pub const w_meta = .{ .description = "w (write/save file)" };
pub fn q(_: *void, _: Ctx) Result {
try cmd("quit", .{});
@ -42,7 +42,7 @@ const cmds_ = struct {
pub fn wq(_: *void, _: Ctx) Result {
try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } }));
}
pub const wq_meta = .{ .description = "wq (write file and quit)" };
pub const wq_meta = .{ .description = "wq (write/save file and quit)" };
pub fn o(_: *void, _: Ctx) Result {
try cmd("open_file", .{});
@ -53,7 +53,7 @@ const cmds_ = struct {
cmd("save_file", .{}) catch {};
try cmd("quit_without_saving", .{});
}
pub const @"wq!_meta" = .{ .description = "wq! (write file and quit without saving)" };
pub const @"wq!_meta" = .{ .description = "wq! (write/save file and quit without saving)" };
pub fn save_selection(_: *void, _: Ctx) Result {
const logger = log.logger("helix-mode");