don't consider underscores as punctuation#98
Open
achristmascarl wants to merge 1 commit into
Open
Conversation
srothgan
added a commit
to srothgan/tui-textarea
that referenced
this pull request
Feb 18, 2026
srothgan
added a commit
to srothgan/tui-textarea
that referenced
this pull request
Feb 18, 2026
* docs: integrate upstream PR rhysd#116 * feat: integrate upstream PR rhysd#113 * chore: add portable-atomic for viewport atomics (upstream PR rhysd#111) * fix(examples): integrate upstream PR rhysd#100 * fix(word): integrate upstream PR rhysd#98 * fix(widget): handle wide unicode char widths in horizontal scroll (upstream PR rhysd#94) * feat(highlight): integrate upstream PR rhysd#93 * chore(release): prepare v0.8.0 docs and CI-clean merged upstream updates * docs(license): rename LICENSE.txt to LICENSE and fix header capitalization
pm100
added a commit
to pm100/ratatui-textarea
that referenced
this pull request
Mar 21, 2026
Underscore is typically not treated as a word boundary by editors and input fields (e.g. Alt+Right in browser address bars, 'w'/'b'/'e' in vim). Classify '_' as Other so word-motion commands treat it as part of a word. Ported from rhysd/tui-textarea#98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Mar 21, 2026
orhun
pushed a commit
to ratatui/ratatui-textarea
that referenced
this pull request
Mar 23, 2026
Underscore is typically not treated as a word boundary by editors and input fields (e.g. Alt+Right in browser address bars, 'w'/'b'/'e' in vim). Classify '_' as Other so word-motion commands treat it as part of a word. Ported from rhysd/tui-textarea#98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
underscores are usually not treated as punctuation by web input fields or editors when moving the cursor to the end of a word or start of a word. for example, using [e] in nvim or [alt + ➡️] in an input will take the cursor across this entire string at once: here_to_here