Commit af5f0db
committed
FindReplaceOverlay: use search-as-you-type in regex mode #1911
Currently, the FindReplaceLogic disables the incremental mode (i.e.,
search-as-you-type) in case the regex search option is activated. This
makes the FindReplaceOverlay, which uses search-as-you-type in all other
situations, behave non-intuitively when the regex option is activated.
In order to achieve consistent, user-expectable behavior of the find and
replace functionality and because of lacking arguments against using
search-as-you-type in regex mode, this change makes the regex search
mode independent from the incremental mode of the FindReplaceLogic. In
consequence, the FindReplaceOverlay always uses search-as-you-type, no
matter which search options are activated.
In addition, explicit test code for that exceptional behavior is removed
or adapted.
Contributes to
#2066
Contributes to
#2646
Fixes #19111 parent b3aa5b0 commit af5f0db
File tree
5 files changed
+43
-34
lines changed- bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui
- internal/findandreplace
- texteditor
- tests/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui
- internal/findandreplace
- overlay
- workbench/texteditor/tests
5 files changed
+43
-34
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
| |||
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
| 612 | + | |
611 | 613 | | |
612 | 614 | | |
613 | 615 | | |
| |||
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
| 655 | + | |
658 | 656 | | |
659 | 657 | | |
660 | 658 | | |
| |||
680 | 678 | | |
681 | 679 | | |
682 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
683 | 687 | | |
684 | 688 | | |
685 | 689 | | |
| |||
708 | 712 | | |
709 | 713 | | |
710 | 714 | | |
| 715 | + | |
711 | 716 | | |
712 | 717 | | |
713 | 718 | | |
| |||
745 | 750 | | |
746 | 751 | | |
747 | 752 | | |
| 753 | + | |
748 | 754 | | |
749 | 755 | | |
750 | 756 | | |
| |||
770 | 776 | | |
771 | 777 | | |
772 | 778 | | |
773 | | - | |
| 779 | + | |
774 | 780 | | |
775 | 781 | | |
776 | 782 | | |
| |||
779 | 785 | | |
780 | 786 | | |
781 | 787 | | |
| 788 | + | |
782 | 789 | | |
783 | 790 | | |
784 | | - | |
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
Lines changed: 18 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 166 | | |
179 | 167 | | |
180 | 168 | | |
| |||
191 | 179 | | |
192 | 180 | | |
193 | 181 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 182 | | |
204 | 183 | | |
205 | 184 | | |
| |||
225 | 204 | | |
226 | 205 | | |
227 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
228 | 225 | | |
0 commit comments