Skip to content

don't consider underscores as punctuation#98

Open
achristmascarl wants to merge 1 commit into
rhysd:mainfrom
achristmascarl:underscores-arent-whitespace
Open

don't consider underscores as punctuation#98
achristmascarl wants to merge 1 commit into
rhysd:mainfrom
achristmascarl:underscores-arent-whitespace

Conversation

@achristmascarl
Copy link
Copy Markdown
Contributor

@achristmascarl achristmascarl commented Mar 11, 2025

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

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>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant