feat: add goto_offset mini mode and command

This commit is contained in:
CJ van den Berg 2025-09-17 22:18:20 +02:00
parent 18cd62ba7e
commit 30a457158c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 63 additions and 0 deletions

View file

@ -1038,6 +1038,11 @@ const cmds = struct {
}
pub const goto_meta: Meta = .{ .description = "Goto line" };
pub fn goto_offset(self: *Self, ctx: Ctx) Result {
return enter_mini_mode(self, @import("mode/mini/goto_offset.zig"), ctx);
}
pub const goto_offset_meta: Meta = .{ .description = "Goto byte offset" };
pub fn move_to_char(self: *Self, ctx: Ctx) Result {
return enter_mini_mode(self, @import("mode/mini/move_to_char.zig"), ctx);
}