-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include punctuation when double-clicking words to select them #4360
base: master
Are you sure you want to change the base?
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.