Repository navigation
Search: no lag on a big book, the last result pressed stays, Ctrl+F (#400) - #407
Merged
Merged
Conversation
…400) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…count Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CHANGELOG: the #400 lines in main's sections, no copied block - Lazy list rows use the list's own window's observer (popouts) - The sidebar fills rows until it overflows, not only on scroll - Ctrl/Cmd+F gives way only to an Obsidian command that runs in a notebook, never when the user recorded it under Settings > Shortcuts; hotkeys stored as code KeyF count Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Joost-8
marked this pull request as ready for review
December 3, 2026 18:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For discussion #400 (the search items).
What changed
search-rows.ts: 30 rows are kept and rewritten in place. More are added as you scroll, or until the list fills its height.sameResults).lazy-rows.ts, using the list's own window's observer so popouts work).showSearchHitsreads the page's text before it moves the view, and nothing let the newest press win, so a slow earlier read moved the view back.search-jump.tslets only the newest jump move the view, and a touch or scroll on the page cancels it. Each row also records the result under the press, so a list rewritten during a tap still opens what was pressed.view.search, under View and zoom) and a new line on the shortcut sheet.find-key.ts).Proof
Measured in the rig: Obsidian 1.15.1, the 1,114-page book, CPU 4×.
On the iPad, over the bridge (the vault build plus this branch, the same book, synthetic touch):
Still on the iPad: while the whole book is read from scratch, frames stall for about 30 s of 35 s, with gaps up to 3.3 s, with or without this branch and with search closed. JavaScript timers keep running meanwhile (worst gap 13 ms), and each page waits on the PDF worker for about 140 ms. So the stall is in painting during the PDF worker read, not in search. The text is kept on the device after one read, so this happens once per PDF. I left it to the PDF session (
pdf-worker.ts).npm run gatespasses.search-rows,search-jump(InkView.showSearchHits: the last press wins, a touch cancels),find-key, plus a shortcut-bindings case,sameResults, and the settings list count.check.mjs --changed: the findings are the 7 groups the nightly already fails on main.Test on the device
Not verified
🤖 Generated with Claude Code