JSON canvas initial

This commit is contained in:
2026-09-17 17:07:04 +02:00
parent b14941b3e0
commit 7797d4a456
22 changed files with 3277 additions and 19 deletions
+5
View File
@@ -49,6 +49,11 @@ type searchPageData struct {
RenderMS int64
}
// ShowPageChrome satisfies the shared layout's contract (see layoutData). The
// results page is always ordinary chrome — it is never the editor and never a
// canvas — but EditMode is honoured so the two views cannot drift apart.
func (d searchPageData) ShowPageChrome() bool { return !d.EditMode }
// indexEntry is the shared scoreable core of both folder and file index
// entries: a forward-slash relative path plus its pre-tokenized basename so
// the per-query scoring loop avoids redoing the lowercasing and tokenization