refactor: prepare match minimode
This commit is contained in:
parent
5b8c28e1e1
commit
a35bbc7e96
3 changed files with 71 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue