Skip to content

Treat . as a word-splitter in text navigation#7741

Merged
emilk merged 1 commit intomainfrom
emilk/fix-dot-navigation
Nov 25, 2025
Merged

Treat . as a word-splitter in text navigation#7741
emilk merged 1 commit intomainfrom
emilk/fix-dot-navigation

Conversation

@emilk
Copy link
Copy Markdown
Owner

@emilk emilk commented Nov 25, 2025

When using option + arrow keys (Mac) or ctrl + arrow keys (Windows), you navigate a full word.
Previously egui would ignore . in the text, so that www.example.com would be considered a full word.
This is inconsistent with how the rest of macOS works.

With this PR, cursor navigation in www.example.com will move the cursor between the dots.
This makes editing code with egui a lot nicer.

@emilk emilk added bug Something is broken egui labels Nov 25, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 25, 2025

Preview available at https://egui-pr-preview.github.io/pr/7741-emilkfix-dot-navigation
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@emilk emilk changed the title Consider . a word-splitter in text navigation Treat . as a word-splitter in text navigation Nov 25, 2025
@emilk emilk merged commit 8b8595b into main Nov 25, 2025
50 checks passed
@emilk emilk deleted the emilk/fix-dot-navigation branch November 25, 2025 12:15
emilk added a commit that referenced this pull request Dec 11, 2025
When using option + arrow keys (Mac) or ctrl + arrow keys (Windows), you
navigate a full word.
Previously egui would ignore `.` in the text, so that `www.example.com`
would be considered a full word.
This is inconsistent with how the rest of macOS works.

With this PR, cursor navigation in `www.example.com` will move the
cursor between the dots.
This makes editing code with egui a lot nicer.
@emilk emilk mentioned this pull request Dec 11, 2025
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
When using option + arrow keys (Mac) or ctrl + arrow keys (Windows), you
navigate a full word.
Previously egui would ignore `.` in the text, so that `www.example.com`
would be considered a full word.
This is inconsistent with how the rest of macOS works.

With this PR, cursor navigation in `www.example.com` will move the
cursor between the dots.
This makes editing code with egui a lot nicer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken egui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant