refactor: prepare match minimode

This commit is contained in:
Igor Támara 2025-11-11 15:33:56 -05:00 committed by CJ van den Berg
parent 5b8c28e1e1
commit a35bbc7e96
3 changed files with 71 additions and 6 deletions

View file

@ -1279,6 +1279,11 @@ const cmds = struct {
}
pub const underline_meta: Meta = .{ .description = "Underline with character" };
pub fn match(self: *Self, ctx: Ctx) Result {
return enter_mini_mode(self, @import("mode/mini/match.zig"), ctx);
}
pub const match_meta: Meta = .{ .description = "Match mode" };
pub fn open_file(self: *Self, ctx: Ctx) Result {
if (get_active_selection(self.allocator)) |text| {
defer self.allocator.free(text);