Enhance cmd+k search by megayu · Pull Request #12384 · logseq/logseq
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 2.5k
Conversation
- Fixed missing highlight cases by adding worker-side fallback highlight handling, improving consistency for CJK and multi-term queries.
- Improved long-text snippet rendering with a prefix + hit window + sentence-boundary start strategy, preventing “match exists but highlight not visible” scenarios.
- Search results now preserve original casing instead of being forced to lowercase.
- Added and refined Code filter support (Code blocks only), including better candidate handling after filtering.
- Added per-repo Cmd+K last-query restore (query + filter persistence).
- Improved result-list focus/scroll interactions across keyboard/mouse/wheel transitions to reduce jumpiness and re-anchoring artifacts.
- Added “Current Page” badge, works across default mixed results, nodes, code, and current-page views:
- For page results, badge is rendered after title.
- For block results, badge is rendered after breadcrumb.
- Fix an issue where lazy loading did not preload additional results outside the viewport.
- Fix stale results remaining after closing the Current Page filter.
- On input changes, reset highlight to the first row and scroll it into view.
- Ensure the input remains consistently editable/focusable.
- Some performance optimizations.
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