mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
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:
1 parent
a6d566ff6f
commit
b44cbee038
9 files changed
+204
-30
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user