This repository was archived by the owner on Jun 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Search input: line breaks #49
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingtext areaThe issue concerns the text areaThe issue concerns the text area
Description
The search currently does not support matches across multiple text blocks (i.e. paragraphs).
This seems to be an issue with Qt/QML first and foremost, as calling QTextDocment::find() with a regex containing \s, \u2029, \r or \n does not result in matches being found. It's quite possible that Qt/QML escapes the backslashes before passing them on to FormattableTextArea, which would explain why they're not working, but it's also possible there is another problem at work.
The TextHighlighter also currently does not support highlighting across multiple blocks, but that part at least is easy to implement. But before it can be implemented, QTextDocument::find() needs to return the right ranges.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtext areaThe issue concerns the text areaThe issue concerns the text area