Enhance cmd+k search by megayu · Pull Request #12384 · logseq/logseq

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

@megayu

  • 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.
Future imports will be performed in the worker, will no longer encounter these issues
…n and avoid truncate tag
…or improved scroll management

@vercel

Labels

3 participants

@megayu @tiensonqin