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

+4
View File
@@ -81,6 +81,10 @@ Commit the regenerated `crates/synapse-ffi/src/frb_generated.rs` and `app/lib/sr
journals, Ctrl+Shift+G graph, Ctrl+Shift+T timeline, Ctrl+\ sidebar, Ctrl+Shift+\ graph
sidebar, Ctrl+, settings, Alt+←/→ back/forward, Ctrl+T new tab, Ctrl+W close tab,
Ctrl+Tab / Ctrl+Shift+Tab next/previous tab.
- Quick switcher (Ctrl+K): page titles and aliases first, then "In notes": pages whose blocks
contain the text (from two characters; one row per page with the first matching block as
a highlighted snippet), then "Create page". Content search is the FFI's `search_blocks`
(SQL `LIKE`, case-insensitive for ASCII only) until synapse-search's full-text index is wired.
## Tabs
- `AppState` holds a list of `AppTab`s; each has its own route and back/forward history, and