Commit 6b28509
Alexey Perov
Add unified search query model with regex/whole-word support for find/replace.
M8 find/replace polish: a tested SearchQuery contract (searchQuery.ts) drives
both in-file editor search and project-wide search through @codemirror/search's
RegExpCursor. Editor ops, highlight, domain APIs, host factory, and types all
consume SearchQuery objects. Project search extends matches with to/length,
validates before traversal, and routes replace through the existing dirty-doc
safety gate. FindReplacePanel gains match-case/whole-word/regex toggles,
inline regex validation, selection seeding, and responsive width.
ProjectSearchPanel gains the same toggles, confirmation dialog before
replace-all, and cancellable search on workspace switch/close.
282 test files, 2960 tests pass. npm run check: 0 errors.1 parent fde0ec9 commit 6b28509
28 files changed
Lines changed: 1421 additions & 314 deletions
File tree
- app/src
- lib
- components
- editor
- services
- types
- routes
- specs
- text-editor-parity-v3
- m8-find-replace-polish
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| |||
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
596 | 602 | | |
597 | 603 | | |
598 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
599 | 608 | | |
600 | 609 | | |
601 | 610 | | |
| |||
604 | 613 | | |
605 | 614 | | |
606 | 615 | | |
| 616 | + | |
| 617 | + | |
607 | 618 | | |
608 | 619 | | |
609 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| 176 | + | |
| 177 | + | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| |||
176 | 187 | | |
177 | 188 | | |
178 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
179 | 196 | | |
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
183 | 221 | | |
184 | 222 | | |
185 | 223 | | |
| |||
387 | 425 | | |
388 | 426 | | |
389 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
390 | 431 | | |
391 | 432 | | |
392 | 433 | | |
| |||
0 commit comments