JSON canvas initial

This commit is contained in:
2026-09-22 21:28:28 +02:00
parent 7b451bae86
commit b48d476b39
21 changed files with 3159 additions and 7 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