Skip to content

Preserve fuzzy result excerpts while editing notes - #79

Merged
dangduc merged 1 commit into
masterfrom
codex/preserve-fuzzy-excerpts
Oct 4, 2026
Merged

dangduc merged 1 commit into
masterfrom
codex/preserve-fuzzy-excerpts

Conversation

@dangduc

@dangduc dangduc commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Editing a note during fuzzy search could reset its result excerpt to the beginning of the note or line, dropping its ellipsis and highlights before fresh match positions arrived. Keep the displayed line and its offsets together until the replacement positions are ready, then update both at once.

The cache retains only line text and offsets. Invalidated results still cannot drive note actions. Regression tests cover pending redraws, updated highlight offsets, and both list layouts.

Validation

Tested on macOS 13.7.8 with Xcode 15.2, using the Intel Development app under Rosetta.

  • Development build passed.
  • Browser suite passed 826 checks with AddressSanitizer and UndefinedBehaviorSanitizer.
  • Full fuzzy UI workflow passed 156 checks on a Launch Services retry; its initial attempt stopped at the foreground-window prerequisite.
  • Focused edit/redraw check passed in both layouts; screenshot capture passed 22 checks, including visible highlight pixels.
  • Multiple-window suite passed 35 checks; relaunch passed 19.
  • 50 of 51 regression suites passed across the initial run, resumed run, and fuzzy UI retry. The remaining native-controls selection-color assertion also fails on unchanged base commit 7553c37: both builds report 7 matching glyph pixels where the test requires more than 10.

Screenshots

Synthetic note after a body edit, with replacement list-position completion held. The list retains its previous excerpt, ellipsis, and highlights while the new positions are pending.

Stacked layout:

Stable fuzzy excerpt while editing, stacked layout

Side layout:

Stable fuzzy excerpt while editing, side layout

@dangduc
dangduc merged commit bd392c6 into master Oct 4, 2026
4 checks passed
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