mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #810] feat(extmarks): add clickable handlers for text buffers #1580
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#1580
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/810
Author: @tobwen
Created: 3/12/2026
Status: 🔄 Open
Base:
main← Head:feature/clickable-extmarks📝 Commits (1)
5ca5ffbfeat(extmarks): add clickable handlers for text buffers📊 Changes
4 files changed (+142 additions, -2 deletions)
View changed files
📝
packages/core/src/lib/extmarks.test.ts(+18 -0)📝
packages/core/src/lib/extmarks.ts(+71 -0)📝
packages/core/src/renderables/EditBufferRenderable.ts(+25 -2)📝
packages/core/src/renderables/__tests__/Textarea.selection.test.ts(+28 -0)📄 Description
Summary
Adds a new clickable text-extmark feature for text buffers. Closes #809
This enables downstream interactions such as expand/edit/collapse summaries, preserves click targeting from
mousedown, ignores drag-selection for click dispatch, and keepstypeIdindexing correct during updates.Verification
typeIdupdate handling and the drag-selection click regressionbun run build:libpassesbun test src/lib/extmarks.test.ts src/renderables/__tests__/Textarea.selection.test.tssegfaults on local Bun1.3.10🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.