feat: add vim mode command to reload_file (:e!)
This commit is contained in:
parent
a8758eeec1
commit
3c233a8dbf
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ const cmds_ = struct {
|
|||
}
|
||||
pub const @"wq!_meta": Meta = .{ .description = "wq! (write file and quit without saving)" };
|
||||
|
||||
pub fn @"e!"(_: *void, _: Ctx) Result {
|
||||
try cmd("reload_file", .{});
|
||||
}
|
||||
pub const @"e!_meta": Meta = .{ .description = "e! (force reload current file)" };
|
||||
|
||||
pub fn move_begin_or_add_integer_argument_zero(_: *void, _: Ctx) Result {
|
||||
return if (@import("keybind").current_integer_argument()) |_|
|
||||
command.executeName("add_integer_argument_digit", command.fmt(.{0}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue