Skip to content

fix(text): reveal Find matches in paragraph-layout fields - #1057

Merged
Hona merged 1 commit into
devfrom
fp-find-field
Nov 16, 2026
Merged

Hona merged 1 commit into
devfrom
fp-find-field

Conversation

@Hona

@Hona Hona commented Nov 16, 2026

Copy link
Copy Markdown
Member

A Find UI could advance the matched byte range in a multiline field but leave it off screen. Highlight lookup only asked for a single Parley layout. Paragraph fields now resolve the lines of a match before reporting its boxes. The reveal and the painted highlight both translate document bytes to the matching paragraphs, including their offsets and direction isolates. The single-layout route is unchanged.

Before: the new match is still off screen After: centred on release
Find before Find after

In a 2,000-line field the match advances from byte 212 to 51,911. On the first frame after release its 20-point line is at y=215, centred in the 350-point viewport beginning at y=50. The rectangle stays there on the following frame. No change to query matching, keyboard shortcuts or native accessibility capabilities.

Copilot AI balanced review requested due to automatic review settings November 16, 2026 00:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit 631e8a6 into dev Nov 16, 2026
1 check passed
overp0werj0int added a commit to overp0werj0int/rune that referenced this pull request Nov 18, 2026
This reverts commit 0d291cc. Upstream's highlight_boxes_in now reads a
field's boxes through TextLayout::view and TextFlow::range_boxes, which
covers a by-paragraph field (anomalyco#1057, with TextFlow::Paragraphs carried
through links, rects and selectable in anomalyco#1133), and links::origin takes a
TextFlow there too. Quire's find-in-source tests (wr_118_*) check it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants