Skip to content

feat(mecatui): position prompt caret by mouse click - #834

Merged
jbeda merged 1 commit into
mainfrom
feat/mecatui-textarea-click-caret
Aug 28, 2026
Merged

jbeda merged 1 commit into
mainfrom
feat/mecatui-textarea-click-caret

Conversation

@jbeda

@jbeda jbeda commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

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.

Type of change

  • New feature

Test plan

Required baseline

  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)

Conditional checks

  • Markdown changed: documentation generation and checks (task docs)
  • User docs or user-facing behavior changed: user-docs site build (task site:build)
  • Guarded engine API surface affected: compatibility check (task api:check)
  • Intentional guarded engine API change: baselines regenerated (task api:update) and engine/CHANGELOG.md updated
  • Manual testing: launched the built TUI and verified clicking prompt text moves the caret.

Does 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.

@jbeda
jbeda force-pushed the feat/mecatui-textarea-click-caret branch from 04207d4 to c43b6fd Compare August 28, 2026 19:17
@jbeda
jbeda merged commit f91eaba into main Aug 28, 2026
20 checks passed
@jbeda
jbeda deleted the feat/mecatui-textarea-click-caret branch August 28, 2026 19:30
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.

mecatui: click-to-position caret in prompt textarea

1 participant