← All ideas
0

Docs: Search page content, not only titles, and add a Cmd+P page switcher

LaunchedDocsIdea

Notion search covers page bodies and comments, and Cmd+P opens search or jumps to recently viewed pages (https://www.notion.com/help/keyboard-shortcuts); Outline advertises instant full-text search as a headline feature (https://www.getoutline.com/). Our searchDocPages in lib/docs.ts runs title LIKE ? only, and app/api/search/route.ts uses it for Cmd+K, so a phrase written inside a page can never be found. Once a team has more than a few dozen pages, finding 'where did we write the refund policy' is the main daily use of a wiki. First scope: search title plus plain text of content (pagePlainText already exists in lib/docs-help.ts) with a snippet around the match and title hits ranked first; add an FTS index later; add a Docs-local Cmd+P palette that lists recent pages when empty. Priority: high. Effort: M. Compared with Notion.

Comments 0

No comments yet.