rename the selection search binding, unify into start_search action

This commit is contained in:
Mitchell Hashimoto
2026-01-06 14:08:34 -08:00
parent 9b6a3be993
commit 8e28f58b42
10 changed files with 15 additions and 84 deletions

View File

@@ -5163,12 +5163,12 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
);
},
.selection_for_search => {
.search_selection => {
const selection = try self.selectionString(self.alloc) orelse return false;
return try self.rt_app.performAction(
.{ .surface = self },
.selection_for_search,
.{ .text = selection },
.start_search,
.{ .needle = selection },
);
},