Include punctuation when double-clicking words to select them#4360
Include punctuation when double-clicking words to select them#4360rustbasic wants to merge 41 commits intoemilk:mainfrom
Conversation
I can only test Windows. ( |
|
If the new code matches the behavior of native windows, then check if |
The |
|
I want to match how text editing works natively on whatever platform egui runs on. If double-clicking I don't know how Windows works though. |
yes. In |
Which Windows app works like that? Here is Notepad: windows-word-boundaries.mp4 |
This was a response to |
What emilk is saying is that egui should work exactly like other programs in each operating system. So you should probably change: if matches!(
c,
'_' | '-' | ':' | '/' | '.' | '\\' | '@' | '#' | '?' | '='
)to if matches!(c, '_') |
In Notepad on Windows 10, many things such as |


Determines whether a character is a component of a word.
This is In general, it feels good to use.
This works well even when using UTF8 characters rather than English-speaking characters.
Before : This is a double clicked on a word.
After : This is a double clicked on a word.