feat(app): quick switcher also finds pages by block content

BlockHit carries the page id so a hit opens its page (journals included).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 04:02:21 +01:00
1 parent a6d566ff6f
commit b44cbee038
9 files changed
+204 -30

No files matched your search

+2 -1
View File
@@ -187,11 +187,12 @@ pub struct TitleHit {
pub is_alias: bool,
}
/// `((` autocomplete hit.
/// A block matching a search (`((` autocomplete, quick switcher content results).
#[derive(Debug, Clone, PartialEq)]
pub struct BlockHit {
pub id: String,
pub content: String,
pub page_id: String,
pub page_title: String,
}