feat: close results pane if find_in_files mode is cancelled

This commit is contained in:
CJ van den Berg 2025-03-26 12:21:54 +01:00
parent 3e8faabd9d
commit b410687339
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 8 additions and 1 deletions

View file

@ -100,6 +100,7 @@ const cmds = struct {
pub const mini_mode_reset_meta: Meta = .{ .description = "Clear input" };
pub fn mini_mode_cancel(_: *Self, _: Ctx) Result {
command.executeName("close_find_in_files_results", .{}) catch {};
command.executeName("exit_mini_mode", .{}) catch {};
}
pub const mini_mode_cancel_meta: Meta = .{ .description = "Cancel input" };