| 1 | # Search |
| 2 | |
| 3 | OneNote 2010's search, observed on the Win7 VM (2026-09-27) with `notebook` open, a copy of |
| 4 | `docs/sample-notebook/Personal`. `crates/canvas/tests/search.rs` checks the shared engine |
| 5 | against it. |
| 6 | |
| 7 | - The box beside the section tabs reads "Search All Notebooks (Ctrl+E)". Its arrow opens |
| 8 | "Search In:" with "Find on This Page (Ctrl+F)", "This Section", "This Section Group", |
| 9 | "This Notebook", "All Notebooks" (checked) and "Set This Scope as Default"; a scope not set |
| 10 | as default returns to it for the next search. |
| 11 | - Typing `tom` with This Notebook lists, under "Finished: This Notebook (change)" and "Find |
| 12 | on page: Ctrl+F", "Title contains: tom (1)" (Tomatoes) and "Body contains: tom (4)" |
| 13 | (Weeknight dal, Spring planting plan, Harvest log 2025, Seed inventory), each with its |
| 14 | notebook and section, "(Personal/Garden)". Words match word starts: `tom` finds |
| 15 | "Tomatoes", `sungold` finds "‘Sungold’". |
| 16 | - `sungold tom` lists only "Body contains: sungold tom (4)": Tomatoes, Spring planting plan, |
| 17 | Harvest log 2025, Seed inventory. A page matches when every word is in its title or text; |
| 18 | "Title contains" needs every word in the title. |
| 19 | - Down arrow selects the next result and shows its page with every match highlighted in |
| 20 | yellow. Esc closes the list and empties the box; the page keeps its first match selected. |
| 21 | - `zzq` shows "No matches: All Notebooks". |
| 22 | - Ctrl+F on Spring planting plan turns the box into "Find on page"; `bed` shows "Match 1 of |
| 23 | 6" with previous and next arrows ("Previous Match (Shift+F3)"), the current match |
| 24 | selected and the others yellow. Enter goes to the next. `zzq` shows "No matches. Try |
| 25 | Ctrl+E". |
| 26 | - The Search Results pane (Alt+O) lists each page under its date with the paragraph around |
| 27 | its first match, "…" where the paragraph is cut. |