feat: add alternate select (open in split) to find_in_files mode

This commit is contained in:
CJ van den Berg 2026-01-22 13:37:40 +01:00
parent 03c6e4def0
commit 5438f19015
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 26 additions and 2 deletions

View file

@ -112,6 +112,12 @@ const cmds = struct {
}
pub const mini_mode_select_meta: Meta = .{ .description = "Select" };
pub fn mini_mode_select_alternate(_: *Self, _: Ctx) Result {
command.executeName("goto_selected_file_alternate", .{}) catch {};
return command.executeName("exit_mini_mode", .{});
}
pub const mini_mode_select_alternate_meta: Meta = .{ .description = "Select alternate" };
pub fn mini_mode_insert_code_point(self: *Self, ctx: Ctx) Result {
var egc: u32 = 0;
if (!try ctx.args.match(.{tp.extract(&egc)}))