Megaxela / QCodeEditor

Qt Code Editor widget.
MIT License
383 stars 118 forks source link

Feature request: Find & Replace #24

Closed ouuan closed 4 years ago

ouuan commented 4 years ago

Finding and replacing are basic functions of an editor, but seems not implemented yet.

It would be better if regexp is supported (which should be optional).

Megaxela commented 4 years ago

I was thinking about implementing this feature. But I came to the conclusion that this should be implemented by the consumer of the library. But considering that this code would be a boilerplate, it really is worth implementing such functionality.

ouuan commented 4 years ago

You are right, it should be implemented by the consumer. QTextDocument already has some APIs.