search: Add ToggleRegex for buffer search (#21799)

Closes #21790 

IMO, this is lost

Release Notes:

- Add ToggleRegex for buffer search
This commit is contained in:
CharlesChen0823
2024-12-12 15:16:39 -08:00
committed by GitHub
parent 5de0bcc990
commit e778635487
+5
View File
@@ -529,6 +529,11 @@ impl BufferSearchBar {
this.toggle_whole_word(action, cx);
}
}));
registrar.register_handler(ForDeployed(|this, action: &ToggleRegex, cx| {
if this.supported_options().regex {
this.toggle_regex(action, cx);
}
}));
registrar.register_handler(ForDeployed(|this, action: &ToggleSelection, cx| {
if this.supported_options().selection {
this.toggle_selection(action, cx);