Search inside article bodies from the top-left box; โŒ˜K focuses it

#2
by thomwolf HF Staff - opened
RL+LLM Wiki org

The top-left search now matches article content, not just titles.

  • matchPage also tests each article's body, indexed for free during the existing ensureCitemap() background pass (state.searchText โ€” no new fetches). A body-only match shows a one-line highlighted snippet under the topic so it's clear why and where it matched.
  • Responsive: typing kicks off indexing immediately and results fill in as articles get indexed.
  • Cmd/Ctrl-K (and '/') and the Cmd-K badge now just focus the top-left search โ€” one box for everything. The separate command palette (which felt broken) is removed entirely: DOM, JS (paletteResults / renderPalette / fuzzyScore / buildPaletteIndex / open-close-palette / palKeydown), and CSS.

Verified in-browser: 48 article bodies indexed; 'variance' surfaces 19 topics each with a bolded snippet (e.g. MDP Formulation, whose title lacks the word); title search still works; Cmd-K / '/' / badge all focus the box.

thomwolf changed pull request status to merged

Sign up or log in to comment