Commit 1ac0cef
Layout filters: match multiple search terms (Models, Groups, Controllers) (#6945)
* Layout filters: whitespace-tokenized AND matching (Models, Groups, Controllers)
The Layout Models/Groups filter (LayoutPanel::MatchesFilter) and the
Controllers filter (ControllerListPanel::ControllerMatchesFilter) treated
the whole search box as one string, so 'midwest pumpkin' never matched
'Midwest-Coro-Pumpkin'. Split the filter on whitespace and require every
term to appear in the name (any order), matching the vendor-catalog and
picker-dialog filters. A single term keeps the existing behaviour,
including the regex power-search.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Drop explanatory comments per review; behavior is described in the commit message
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 242f715 commit 1ac0cef
2 files changed
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
543 | | - | |
544 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
545 | 550 | | |
546 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
547 | 557 | | |
548 | 558 | | |
549 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
13185 | 13186 | | |
13186 | 13187 | | |
13187 | 13188 | | |
13188 | | - | |
13189 | | - | |
| 13189 | + | |
| 13190 | + | |
| 13191 | + | |
| 13192 | + | |
| 13193 | + | |
| 13194 | + | |
13190 | 13195 | | |
13191 | | - | |
| 13196 | + | |
| 13197 | + | |
| 13198 | + | |
| 13199 | + | |
| 13200 | + | |
| 13201 | + | |
13192 | 13202 | | |
13193 | 13203 | | |
13194 | 13204 | | |
| |||
0 commit comments