cutter icon indicating copy to clipboard operation
cutter copied to clipboard

Add search widget for TextEdit widgets (Console, Decompiler, ...)

Open ITAYC0HEN opened this issue 4 years ago • 2 comments

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

image

image

  • 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

ITAYC0HEN avatar Mar 29 '20 08:03 ITAYC0HEN

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.

karliss avatar Jul 16 '20 08:07 karliss

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?

Screenshot 2021-12-18 at 5 05 46 PM

Right now I have only completed the visual aspect but as soon as I try to make it work with Cutter's widgets.

Petross404 avatar Dec 18 '21 14:12 Petross404