Repository navigation
feat(mecatui): position prompt caret by mouse click - #834
Merged
Merged
Conversation
Co-Authored-By: mecatl <[email protected]>
jbeda
force-pushed
the
feat/mecatui-textarea-click-caret
branch
from
August 28, 2026 19:17
04207d4 to
c43b6fd
Compare
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.
Summary
Fixes #490. Clicking prompt text in the alternate-screen TUI now places and focuses the textarea caret, including soft-wrapped and scrolled input. The implementation uses Bubbles public cursor movement and line metadata instead of duplicating its private wrapping rules.
MECATUI_DEBUG_MOUSEwith prompt hit bounds.Type of change
Test plan
Required baseline
task lint)task test)go run ./cmd/mecademo)Conditional checks
task docs)task site:build)task api:check)task api:update) andengine/CHANGELOG.mdupdatedDoes this introduce a user-facing change?
Yes. In the alternate-screen TUI, clicking prompt text moves the input caret to that cell. This does not add prompt drag-selection or copy support.