Skip to content

Add mouse text selection to plan-review widget#108

Open
astex wants to merge 1 commit intoplan-review-pr4-rich-markdownfrom
plan-review-pr5-mouse-selection
Open

Add mouse text selection to plan-review widget#108
astex wants to merge 1 commit intoplan-review-pr4-rich-markdownfrom
plan-review-pr5-mouse-selection

Conversation

@astex
Copy link
Copy Markdown
Owner

@astex astex commented Apr 8, 2026

Tracks selection in widget Tree state with anchor/head points in markdown-line coordinates, mirroring the alacritty selection lifecycle. Pixel positions map to (line, char) via per-line layouts that share y-advancement logic with draw, and selection is highlighted with a translucent foreground rect per affected line. Exposes a selected_text helper for PR-6 to consume.

Tracks selection in widget Tree state with anchor/head points in
markdown-line coordinates, mirroring the alacritty selection lifecycle.
Pixel positions are mapped to (line, char) via per-line layouts that
share the y-advancement logic with draw. Selection is highlighted with
a translucent foreground rect per affected line. Exposes a
selected_text helper for PR-6 to consume.
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.

1 participant