mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #533] Add ALT+arrow word movement to Input component #1385
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/533
Author: @tobwen
Created: 1/16/2026
Status: 🔄 Open
Base:
main← Head:feature/alt-arrow-word-movement📝 Commits (1)
916d0eeAdd ALT+arrow word movement to Input component📊 Changes
3 files changed (+306 additions, -0 deletions)
View changed files
➕
packages/core/src/examples/input-word-movement-demo.ts(+179 -0)📝
packages/core/src/renderables/Input.test.ts(+86 -0)📝
packages/core/src/renderables/Input.ts(+41 -0)📄 Description
Implements word-by-word cursor navigation using ALT+Left and ALT+Right:
The implementation supports both standard terminals and PuTTY's alternative input mode (see additional fix).
Hint: Different from moveWordForward/moveWordBackward which are text-direction aware (Forward goes to logical end of text). moveWordLeft/Right are visually direction aware - Left always moves cursor visually left on screen.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.