wip multi-line find
@@ -613,12 +613,33 @@ class InteractiveFind(Window):
self.findLine.setParent(self)
self.layoutOrder.append(self.findLine)
- if 0:
+ if 10:
self.replaceLine = LabeledLine(self, 'Replace: ')
self.replaceLine.setController(app.cu_editor.InteractiveFindInput)
self.replaceLine.setParent(self)
self.layoutOrder.append(self.replaceLine)
+ if 1:
+ self.matchOptionsRow = RowWindow(self, 2)
+ self.matchOptionsRow.setParent(self)
+ self.matchOptions = {
+ 'regex': False,
+ 'wholeWord': False,
+ 'ignoreCase': False,
+ }
+ toggle = OptionsToggle(self.matchOptionsRow, 'regex', self.matchOptions)
+ toggle.setController(app.cu_editor.ToggleController)
+ toggle.color = app.color.get('keyword')
+ toggle.setParent(self.matchOptionsRow)
+ toggle = OptionsToggle(self.matchOptionsRow, 'wholeWord', self.matchOptions)
+ toggle.setController(app.cu_editor.ToggleController)
+ toggle.color = app.color.get('keyword')
+ toggle.setParent(self.matchOptionsRow)
+ toggle = OptionsToggle(self.matchOptionsRow, 'ignoreCase', self.matchOptions)
+ toggle.setController(app.cu_editor.ToggleController)
+ toggle.color = app.color.get('keyword')
+ toggle.setParent(self.matchOptionsRow)
+ else:
self.matchOptions, self.matchOptionsRow = self.addToggleOptionsRow(
indent + 'options ',
[
