Parent
#249 Deepen the installed PWA. Sibling of #247, #248, and #251. Not blocked by them.
What to build
Add caret find on the open pad. The user types a query, sees hits, and steps the caret to the next or previous hit.
Filter stays Filter. It hides Sections. It is not find. Rename the Filter field so it no longer says “Find in document”.
Acceptance criteria
Agent Brief
Category: enhancement
Summary: Real find on the pad, plus an honest Filter label.
Current behavior:
The Filter panel title is Filter. Its field still says “Find in document”. Apply hides unmatched Sections. It does not step hits or move the caret.
Folded Section bodies use display: none. Browser find cannot see them. The pad does not bind Mod-f.
matchSections skips Title and the nodes under Title. It is a Section index for Filter. It is not the hit engine.
A viewer can already run Filter. History unmounts the pad editor.
Desired behavior:
Open a find bar from a toolbar control next to Filter. On desktop, Mod-f opens the same bar and steals browser find. That steal is required, because folded text is hidden from the page.
Walk the live pad document. Include Title. Ignore Pad title, the chat composer, and History.
Treat the query as a trimmed, case-insensitive substring. Do not add whole-word, regex, or replace.
When the bar opens, snapshot the current folds. For the current hit, unfold that Section only. Leave the rest of the snapshot in place. Do not replace the whole fold set with one id. Closing the bar restores the snapshot. Filter can stay on.
Paint hits with a new inline decoration class. Do not write the stored Highlight mark. Do not reuse the Filter highlight class. Do not put a live region inside the editor.
Cap paint and stepping at 200 hits. If there are more, show 200+.
A Read-only viewer can find. An Editing lock still allows find. Do not run find when History has unmounted the pad.
#175 is theme flip and a two-key help dialog. Do not add find to that help table.
Key interfaces:
- Caret find — bar, next, previous, caret on the current hit
- Filter — Section hide only; field no longer claims find
- Title — first heading; included in search
- Pad title — header name; not searched
- Section — heading plus following nodes; unfold the one that holds the current hit
- Editing lock — blocks edits; does not block find
- Highlight — stored mark; do not use it to paint hits
Out of scope
Parent
#249 Deepen the installed PWA. Sibling of #247, #248, and #251. Not blocked by them.
What to build
Add caret find on the open pad. The user types a query, sees hits, and steps the caret to the next or previous hit.
Filter stays Filter. It hides Sections. It is not find. Rename the Filter field so it no longer says “Find in document”.
Acceptance criteria
Mod-fopens that bar and does not open the browser find dialog.3 of 12.200+, and step only those 200.aria-labeland placeholder no longer say “Find in document”. The panel title stays Filter.Agent Brief
Category: enhancement
Summary: Real find on the pad, plus an honest Filter label.
Current behavior:
The Filter panel title is Filter. Its field still says “Find in document”. Apply hides unmatched Sections. It does not step hits or move the caret.
Folded Section bodies use
display: none. Browser find cannot see them. The pad does not bindMod-f.matchSectionsskips Title and the nodes under Title. It is a Section index for Filter. It is not the hit engine.A viewer can already run Filter. History unmounts the pad editor.
Desired behavior:
Open a find bar from a toolbar control next to Filter. On desktop,
Mod-fopens the same bar and steals browser find. That steal is required, because folded text is hidden from the page.Walk the live pad document. Include Title. Ignore Pad title, the chat composer, and History.
Treat the query as a trimmed, case-insensitive substring. Do not add whole-word, regex, or replace.
When the bar opens, snapshot the current folds. For the current hit, unfold that Section only. Leave the rest of the snapshot in place. Do not replace the whole fold set with one id. Closing the bar restores the snapshot. Filter can stay on.
Paint hits with a new inline decoration class. Do not write the stored Highlight mark. Do not reuse the Filter highlight class. Do not put a live region inside the editor.
Cap paint and stepping at 200 hits. If there are more, show
200+.A Read-only viewer can find. An Editing lock still allows find. Do not run find when History has unmounted the pad.
#175 is theme flip and a two-key help dialog. Do not add find to that help table.
Key interfaces:
Out of scope
Mod-f