cutter
cutter copied to clipboard
Add search widget for TextEdit widgets (Console, Decompiler, ...)
Describe the solution you'd like Currently, there is no easy way to find text in the Console widget. The feature I'd like to see is a search widget with the following features:
- Good and modern UI. For example, a small box poping at the top-right corner of the widget. Check other text editors for example. e.g kconsole, vscode
- Count number of results, and show the current index of shown result (5 of 14)
- Regex support
- Toggle: Match Case, Regex
Bonus Feature:
- replace, for editable widgets (e.g types and structs). This can be set to disable by default or to be smart to know if the widget is writeable
Please don't invent the wheel and check Qt based open-source projects for such implementations. For example, qconsole
Somewhat related to https://github.com/radareorg/cutter/issues/2230 . If it is the same search bar widget across everything it needs to support different data models since they are completely different for decompiler widget, console widget (rich text box), table widgets and graph widget.
I am trying to create a generic search widget for this issue. Ignore the window borders it's just an orphan widget ATM. Is this what we are looking to implement?
Right now I have only completed the visual aspect but as soon as I try to make it work with Cutter's widgets.