feat: add save_as mini mode

This commit is contained in:
CJ van den Berg 2024-08-30 20:18:11 +02:00
parent 34540bbff0
commit a2674c121e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 50 additions and 0 deletions

View file

@ -698,6 +698,10 @@ const cmds = struct {
return enter_mini_mode(self, @import("mode/mini/open_file.zig"), ctx);
}
pub fn save_as(self: *Self, ctx: Ctx) Result {
return enter_mini_mode(self, @import("mode/mini/save_as.zig"), ctx);
}
const MiniModeFactory = fn (Allocator, Ctx) error{ NotFound, OutOfMemory }!EventHandler;
fn enter_mini_mode(self: *Self, comptime mode: anytype, ctx: Ctx) Result {