Skip to content

feat(input): migrate to extend textarea#539

Merged
kommander merged 7 commits intomainfrom
feat/input-migration-20260116100941
Jan 17, 2026
Merged

feat(input): migrate to extend textarea#539
kommander merged 7 commits intomainfrom
feat/input-migration-20260116100941

Conversation

@msmps
Copy link
Collaborator

@msmps msmps commented Jan 16, 2026

Summary

Refactor InputRenderable to extend TextareaRenderable, eliminating ~200 lines of duplication.

Key changes:

  • Input now inherits text editing, cursor management, and key binding logic from Textarea
  • Action names aligned with Textarea conventions (line-home, line-end, backspace, delete)
    • BREAKING CHANGE?

Test Plan

  • Existing Input tests updated and passing
  • Manual test

@msmps msmps requested review from Hona and kommander as code owners January 16, 2026 11:58
@msmps msmps added enhancement New feature or request core This relates to the core package labels Jan 16, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 16, 2026

@opentui/core

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core@539

@opentui/react

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/react@539

@opentui/solid

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/solid@539

@opentui/core-darwin-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@539

@opentui/core-darwin-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@539

@opentui/core-linux-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@539

@opentui/core-linux-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@539

@opentui/core-win32-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@539

@opentui/core-win32-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@539

commit: d7fe746

@Hona
Copy link
Member

Hona commented Jan 16, 2026

This would be a good pr to try my snapshot testing on 👀

@msmps
Copy link
Collaborator Author

msmps commented Jan 16, 2026

This would be a good pr to try my snapshot testing on 👀

Take it away @Hona 🙌

@kommander kommander merged commit 62f26da into main Jan 17, 2026
10 checks passed
@kommander kommander deleted the feat/input-migration-20260116100941 branch January 17, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core This relates to the core package enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants