I'm extending a QPlainTextEdit.
When I double click on a word containing a pipe char ex : {"foo"|upper|reverse} the whole text is surrounded.
I'd like to exclude the pipe char "|" from the selection and don't know what to do Is there a way to change the behavior of QTextCursor::WordUnderCursor?
I'd like that char to act the same as a space or more generally as an unselectable char.
As stated in QT docs:
Selects the word under the cursor. If the cursor is not positioned within a string of selectable characters, no text is selected.