Introducing a new way to review your PRs.

Read the announcement

triliumnext / trilium

Build your personal knowledge base with Trilium Notes

View on GitHub

20 documents · Updated Nov 23, 2026

docs / client-note-editing-and-navigation

Client note editing and navigation

The client lets a user select a note and work with it in a view suited to its content. A note can open as editable text, read-only text, a spreadsheet, a canvas, a mind map, a file view, or another focused widget. The same note can also appear in a split pane, popup, sidebar, or embedded view without losing its navigation or save ownership.

This page complements Client experience, Client search and visual tools, and Client settings and session security.

The navigation model keeps note identity, the selected place inside a note, and the surface that owns the action together. This lets several panes show related notes without sending a link, selection, or save to the wrong pane.

Note contexts

A note context is the state for one note in one tab, pane, popup, or embedded surface. It identifies the note path and any view target, such as a block, attachment, slide, or collection item. This keeps an action in one surface from changing the note shown in another surface.

Links and creation actions use the context that owns the clicked element or the current selection. The note tree also passes its own context to creation actions, which matters in popups that are not the active tab. A pinned context keeps its note and opens another context for a different target. Split panes therefore remain independent while they show several notes at once.

The client can serialize note paths, view targets, and extra panes in its internal URL hash. Detached windows keep the runtime query settings and accept only a bounded number of split panes. External URLs are not treated as client navigation targets.

The main route from a user action to a note surface is:

flowchart LR
    A[Tree choice, link, or widget action] --> B[Resolve note and view target]
    B --> C[Owning note context]
    C --> D{Access and view}
    D -->|Editable| E[Note editor]
    D -->|Read-only| F[Note reader]
    D -->|Focused target| G[Block, file, slide, or item view]
    E --> H[Save through owning context]
    F --> I[Read, search, or follow links]
    G --> H

References: apps/…/note_context.ts• L88-118 apps/…/note_context.ts• L143-217 apps/…/link.ts• L40-108 apps/…/navigation_state.ts• L82-169 apps/…/navigation_state.ts• L179-227 apps/…/split_note_container.ts• L17-193 apps/…/note_tree.ts• L186-199

Note tree selection

The note tree is the main way to choose a note from its hierarchy. A normal click activates one note. Modifier clicks support a range or a multi-selection, while a middle click opens a separate tab and the tree can restore the active note's path and expansion state.

The tree loads large or search-backed branches as needed. It supports note links, file imports, and branch moves through drag and drop. Hidden subtrees can be spotlighted when a link targets a note that is not currently visible, so navigation can still reach the exact destination.

References: apps/…/note_tree.ts• L319-437 apps/…/note_tree.ts• L447-563 apps/…/note_tree.ts• L566-600 apps/…/note_tree.ts• L947-1160

A navigation target adds a place inside a note to its path. It can point to a block, heading, attachment, PDF page, PDF annotation, slide, board card, or search match. The client resolves the target before the destination widget renders, then reveals it when the content is ready.

Targets are consumed by the destination widget after they have been used. A link may also carry display data for a target, such as a board column label or a PDF heading fallback. This lets navigation reach the right place even when the destination needs time to load or cannot resolve every saved detail.

The target stays with its owning context. This matters when a link is inside an embed, collection, map, or popup because the destination must open in the surface that received the action.

References: apps/…/link.ts• L40-108 apps/…/link.ts• L516-660 apps/…/navigation_state.ts• L8-80 apps/…/Pdf.tsx• L142-180 apps/…/ReadOnlyText.tsx• L62-85 apps/…/TableOfContents.tsx• L65-129

The side panes provide local ways to move through the current note without replacing it. The right pane groups attributes, connections, outlines, PDF parts, highlights, and chat into tabs. A tab can be docked or opened as a temporary peek, and widgets keep their state when the user changes tabs or collapses them.

The outline follows headings or another widget's reported structure. Selecting an entry scrolls the note and can close a covering mobile panel. The connections area shows the note map, its paths, and backlinks, so relationship navigation stays separate from note content editing.

References: apps/…/RightPaneContent.tsx• L48-112 apps/…/RightPaneContent.tsx• L114-159 apps/…/RightPanelContainer.tsx• L23-71 apps/…/RightPanelWidget.tsx• L76-145 apps/…/TableOfContents.tsx• L36-63

Note detail surfaces

The detail area turns the selected note and target into a content surface. It keeps the surface stable while content loads and lets each widget apply its own access and layout rules.

Effective note views

The detail area chooses a reader or editor from the stored note type, the requested target, and the current access state. A note can therefore show a text editor, a source preview, an attachment, or a focused collection item without changing its stored type.

The surface hides stale content during a note change and reports a retry when loading fails. A read-only state changes the actions offered by the current widget; it does not create a different note.

References: apps/…/NoteDetail.tsx• L77-97 apps/…/NoteDetail.tsx• L259-335 apps/…/NoteDetail.tsx• L368-509 apps/…/note_types.ts• L36-72

Read-only boundaries

Read-only is a view state that can come from protection, sharing, database rules, a source view, or another access rule. The note context remains available for navigation while the widget removes actions that would write content.

Some embedded views can offer temporary editing when their save owner allows it. Nested embeds remain readers. This gives each editable surface one owner for changes and one undo scope.

References: apps/…/note_context.ts• L33-50 apps/…/note_context.ts• L361-423 apps/…/ReadOnlyText.tsx• L46-85 apps/…/Canvas.tsx• L32-47

Surface layout

Each widget controls the space needed for its content. Sheets, maps, canvases, media, PDFs, collections, and presentations can use the full pane, while ordinary text can use a focused reading width. Theme, fonts, title style, and surrounding width change the surface without changing note identity.

Embedded content can expand, enter fullscreen, or use a local overlay. Closing that local surface returns focus to the surrounding note rather than redirecting navigation.

References: apps/…/note_wrapper.ts• L22-118 apps/…/note_wrapper.ts• L125-147 apps/…/ContentEmbed.tsx• L76-110 apps/…/ContentEmbed.tsx• L136-247 apps/…/content_embed_tools.ts• L283-323

Text note surfaces

Text notes share a content model across editing, reading, source views, and embeds. The client changes the controls and save owner to match the surface without changing the note's identity.

Rich text editing

Editable text uses the rich editor as the main writing surface. It connects links, child-note creation, uploads, commands, embeds, search jumps, and saves to the note context that owns the editor. Selection-based actions use that editor's note context rather than the globally active tab, so a child note is created under the note being edited even in a split, popup, map, calendar, or embedded pane.

The editor supports formatted blocks, links, included notes, images, tables, diagrams, math, tasks, code, snippets, and assistant actions. Note mentions and slash commands use the same context-aware completion model. A picked note can open a second step for its headings or anchors when target completion is enabled.

Editor settings can update a live editor or require a safe rebuild. A rebuild waits for the old editor to close and restores the surrounding scroll position. Live changes avoid discarding the current caret and undo history when the setting does not require a rebuild. The toolbar adapts to the device and surface, with a fixed bar on mobile and either a fixed or selection-based bar on larger surfaces. Text settings also control completion, automatic replacements, code blocks, fonts, and heading display.

References: apps/…/EditableText.tsx• L121-174 apps/…/EditableText.tsx• L221-264 apps/…/EditableText.tsx• L337-366 apps/…/CKEditor.tsx• L120-171 apps/…/config.ts• L77-123 apps/…/mobile_editor_toolbar.tsx• L23-66 apps/…/mention_list_view.tsx• L21-63 apps/…/toolbar.ts• L17-43 apps/…/text_notes.tsx• L34-52

Read-only text

Read-only text uses the same content model as editing but presents a document without write actions. It keeps links, included notes, diagrams, math, images, tables, tabs, code blocks, and previews useful. It also refreshes attachment links and embedded content without replacing the whole reading surface when a related entity changes.

After the note is ready, the reader applies the display rules and connects search, bookmarks, block references, and heading navigation. A hidden reader catches up when it becomes visible. Changes from its own editor do not trigger a needless reload or loading overlay over the visible editor.

References: apps/…/ReadOnlyText.tsx• L46-90 apps/…/ReadOnlyText.tsx• L120-229 apps/…/embed_boxes.ts• L35-75 apps/…/embed_boxes.ts• L78-117

Embedded text editing

An embedded text note normally shows a rendered preview. Its local edit action opens a separate note context and editor for the embedded note while the surrounding document stays in place.

The preview keeps the editor's latest content until its closing save succeeds. If the embed leaves the document, its editor saves what remains and tracks that save before the preview can return to older stored content. Nested embeds do not become editors, so one surface owns each save and undo scope.

References: apps/…/TextEmbed.tsx• L32-70 apps/…/TextEmbed.tsx• L74-153 apps/…/TextEmbedEditor.tsx• L43-92 apps/…/TextEmbedEditor.tsx• L103-158 apps/…/ContentEmbed.tsx• L347-379

Source and preview views

Source-backed notes pair editable source with a rendered result. Markdown notes use this model with a CodeMirror source view and the same read-only rendering pipeline used by text notes. The source and preview stay linked by headings, source lines, highlights, active selection, tabs, and scroll position.

Markdown navigation works in either pane. A heading, block reference, highlight, or search result maps to a source line, while the active source line marks the matching preview block and reveals the matching tab. Markdown commands can insert links, note includes, images, diagrams, tables, tasks, and other supported blocks. Code fences offer the enabled language choices only at an opening fence.

The preview keeps its last useful result while a new render is pending or fails. The same boundary applies to source embeds inside rich text, where source and display mode remain local to the embed.

References: apps/…/Markdown.tsx• L112-179 apps/…/Markdown.tsx• L195-263 apps/…/Markdown.tsx• L266-365 apps/…/Markdown.tsx• L369-488 apps/…/MarkdownEmbed.tsx• L41-130 apps/…/block_reference_menu.ts• L22-91 apps/…/editor_block_references.ts• L61-128

Embedded code views

Code notes, attached code files, and extended code blocks share a code view that is read-only until the surrounding embed enters edit mode. The embed keeps language, wrapping, line numbers, and indentation as local view choices where the source is an attachment or inline block, while note-level code settings remain tied to the note.

An edit made through the preview routes to the editor that owns the source and its undo history. Unsaved text stays visible while another save or reload arrives. The embed can show save state, copy content, and offer code-specific menus without changing the navigation context of the containing note.

Code and Markdown editors share note completion behavior. A completion can create a note under the owning note, insert a note link, or choose a link target. Results from an old note are not used after the editor is reused for another note.

References: apps/…/Code.tsx• L60-106 apps/…/Code.tsx• L128-220 apps/…/Code.tsx• L229-339 apps/…/CodeEmbed.tsx• L63-127 apps/…/CodeEmbed.tsx• L163-239 apps/…/CodeEmbed.tsx• L428-468 apps/…/editor_completions.tsx• L54-177 apps/…/code_mime_types_card.tsx• L27-69

Structured note widgets

Structured widgets present note content as a focused tool rather than as a plain document. They still follow the same context, target, access, and save rules as text surfaces.

Collection views

Collection notes turn child notes or search results into a view for scanning and acting on a set of notes. Lists, grids, tables, boards, calendars, maps, presentations, and dashboards use the same idea while giving users different ways to select and change notes.

Filters define membership. The collection refreshes the child or subtree scope that owns the change and applies only the newest result. View settings stay with the collection and view that own them.

References: apps/…/interface.ts• L6-35 apps/…/NoteList.tsx• L103-184 apps/…/NoteList.tsx• L206-333

Spreadsheet notes

Spreadsheet notes provide a workbook for values, formulas, formatting, filters, links, comments, drawings, and several sheets. The workbook is the note's content, while previews and inserted images can use related attachments.

The spreadsheet follows the note context for focus, search, access, and navigation. Read-only mode keeps the data visible and removes editing controls. A refresh restores the active sheet, cell, and scroll position. The view uses the matching client language when available and falls back to English.

References: apps/…/Spreadsheet.tsx• L67-120 apps/…/Spreadsheet.tsx• L217-291 apps/…/persistence.tsx• L18-83 apps/…/persistence.tsx• L156-235

Canvas notes

Canvas notes make note content visual through drawing, note drops, links, embedded content, history, search, and export. The owning note context decides whether the canvas can change, and canvas changes save with the note and its image attachments.

Canvas search finds text inside drawing shapes and marks the matches in the drawing. It moves the drawing only when the current match is outside the visible area, and restores the prior view when the search ends unless the user moved the drawing.

An embedded drawing can switch between a picture and an editor. It keeps the latest unsaved drawing while the mode changes, keeps its embedded view separate from fullscreen, and lets the surrounding note scroll until a drawing tool is active.

Canvas loading and saving treat a note switch as a replacement rather than a user edit. Preview pictures are created after the related save settles, so a later save cannot be represented by an older picture.

References: apps/…/Canvas.tsx• L32-47 apps/…/Canvas.tsx• L65-159 apps/…/drawing_find.tsx• L51-117 apps/…/drawing_find.tsx• L198-231 apps/…/CanvasDrawing.tsx• L62-161 apps/…/persistence.ts• L97-181 apps/…/persistence.ts• L244-351 apps/…/persistence.ts• L461-539

Mind-map notes

Mind-map notes make note relationships visual through nodes, branches, links, summaries, focus mode, node selection, and export. A selected node can show a panel for formatting, icons, images, links, tags, and a rich memo.

Read-only maps keep node selection and memo reading while removing map edits. The map keeps its zoom, center, direction, focus, fullscreen state, and selection. A memo commits when focus leaves or the selection changes, and it remains tied to the selection that opened it.

Map content is sanitized before it is rendered or exported. Saves also produce a portable SVG preview that preserves the labels, links, images, icons, arrows, and summaries needed by shared or included views.

References: apps/…/MindMap.tsx• L92-207 apps/…/MindMap.tsx• L496-526 apps/…/NodePanel.tsx• L42-92 apps/…/NodePanel.tsx• L100-128 apps/…/NodeMemo.tsx• L17-105 apps/…/MapToolbar.tsx• L35-74

Note maps and connections

The note map shows notes and their relations around a chosen root. Clicking a node opens it in the host context, while the connections pane gives the current note a smaller map alongside paths and backlinks.

The map limits very large graphs until the user chooses to continue. A note change rebuilds the graph and discards the old render loop, so data from the old root cannot land in the new note's map.

References: apps/…/NoteMap.tsx• L37-52 apps/…/NoteMap.tsx• L85-180 apps/…/NoteMap.tsx• L16-67 apps/…/NoteMapGraph.tsx• L14-29 apps/…/Backlinks.tsx• L49-109

Other note-type widgets

Other widgets keep the same navigation contract while presenting files, queries, generated results, chats, or external pages. Their local controls do not replace the surrounding note context.

Attachments and file views

Attachment views let a note show files, images, audio, video, PDFs, transcripts, and generated previews. A full attachment target can add media controls, image navigation, PDF controls, transcript reading, or an editable canvas drawing when the owner note permits it.

PDF views expose pages, attachments, layers, annotations, and document headings to the surrounding outline and navigation system. A PDF link can open a page or annotation after the matching document load is ready. PDF edits use the owning note context and are delayed long enough to avoid re-uploading the whole file for every small annotation change.

User attachments stay distinct from system-created previews. System previews start folded and load when opened. An attachment link carries the exact attachment target, so navigation can return to the file rather than only to its note. Full image and media views can move through sibling attachments.

References: apps/…/Attachment.tsx• L58-109 apps/…/Attachment.tsx• L190-223 apps/…/Attachment.tsx• L226-386 apps/…/Pdf.tsx• L76-104 apps/…/Pdf.tsx• L142-204 apps/…/Pdf.tsx• L304-361 apps/…/Pdf.tsx• L443-460 apps/…/File.tsx• L20-41 apps/…/Image.tsx• L17-45

Queries and generated content

SQL notes pair a source editor with schema hints and result tables. A query can show rows, a statement result, an empty result, or an error without changing the source note. Results can be filtered, sorted, paged, copied, and exported.

Render notes show content generated from a related note. The client refreshes that result when the relation changes and avoids offering setup actions when access rules make the note read-only.

References: apps/…/SqlConsole.tsx• L21-33 apps/…/SqlConsole.tsx• L36-104 apps/…/Render.tsx• L36-115

Chat notes

Chat notes use a rich input for note mentions, attachments, model choice, search tools, reasoning level, and permission controls. The current note can be added as context, while the tools menu shows what the current chat may access.

Model providers and web-search providers are configured through a guided flow. A model provider validates its connection, lets the user choose models, and stores model details for later chat use. A search provider runs a test search before save, but a failed test can be saved for later repair. Providers that need a host process or reject browser requests stay visible but unavailable in a standalone client.

Streaming locks the input and adds tool calls, approvals, errors, note links, and content-edit summaries to the conversation. The input state and the send path must describe the same model, note scope, and permission mode.

References: apps/…/ChatInputBar.tsx• L118-160 apps/…/ChatInputBar.tsx• L192-241 apps/…/ChatInputBar.tsx• L277-343 apps/…/ChatToolsDropdown.tsx• L17-129 apps/…/AddProviderModal.tsx• L233-239 apps/…/AddProviderModal.tsx• L370-480 apps/…/ModelSelection.tsx• L35-81 apps/…/SearchProviderCheck.tsx• L24-49

External web views

Web views show a user-supplied URL inside a note. Browser views use a restricted frame. Desktop views use a separate session so the guest page does not share the client session.

When the embedded page receives focus, the client returns ownership to the note context that contains it. Invalid URLs remain setup data instead of becoming navigation targets.

References: apps/…/WebView.tsx• L22-37 apps/…/WebView.tsx• L39-93 apps/…/WebView.tsx• L95-153

Cross-widget actions

Links, creation, focus, and saves cross widget boundaries through the owning note context. This keeps an action local even when the content is embedded or shown by a different widget.

Note links carry a note path and may carry a view target such as a block, board card, PDF page, attachment, or search terms. The client opens the link in the context that owns the clicked element, including panes, popups, maps, calendars, boards, presentations, and embedded editors.

Creation follows the same ownership rule. A tree action, editor selection, board card, map placement, calendar draft, or presentation action creates the note under its requested parent and returns focus to the requesting surface.

References: apps/…/link.ts• L40-108 apps/…/link.ts• L516-660 apps/…/navigation_state.ts• L108-157 apps/…/note_create.ts• L18-205 apps/…/EditableText.tsx• L337-366 apps/…/editor_utils.ts• L64-107

Focus and save ownership

Each editable surface has one save owner. Text, code, source, drawing, spreadsheet, PDF, and attachment views can show related content in more than one place, but writes route through the context that owns that content.

Widgets publish local state such as headings, selected slides, board columns, map details, PDF sections, and save status. The owning context clears that state when the note changes, so shared controls do not act on the previous widget. Attachment and embedded-note changes can wait with the host note or save as their own content, but both retain their own revision and conflict state.

References: apps/…/note_context.ts• L52-84 apps/…/note_context.ts• L581-625 apps/…/Pdf.tsx• L105-127 apps/…/EditableText.tsx• L110-174 apps/…/TextEmbedEditor.tsx• L68-92 apps/…/CodeEmbed.tsx• L163-239 apps/…/attachment_saves.ts• L147-349 apps/…/attachment_saves.ts• L383-513

Embedded content boundaries

Embedded notes and attachments reuse the readers and widgets used by full note views, but add a display mode, box size, focus handoff, and local actions. The title row can open the target without changing the containing note.

Embedded content can register local toolbar tools, caret entry, and find targets with its host. Search can reveal a collapsed embedded note and can use the innermost editor rather than the outer preview. This keeps local search and focus inside the embed while the surrounding document remains the owner of its layout.

When an embedded surface leaves the document, it disposes interactive content and tracks its save. This prevents media, drawings, source views, code editors, and nested text editors from leaking focus or state into another note. Markdown and code embeds can switch between source, split, and preview modes while keeping those choices local to the embed.

References: apps/…/ContentEmbed.tsx• L76-110 apps/…/ContentEmbed.tsx• L136-247 apps/…/ContentEmbed.tsx• L347-485 apps/…/content_embed_tools.ts• L121-211 apps/…/content_embed_tools.ts• L235-264 apps/…/utils.ts• L260-329 apps/…/embed_boxes.ts• L35-75 apps/…/MarkdownEmbed.tsx• L41-130

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to note paths or view targets must work from the tree, links, pinned contexts, split panes, detached views, collection views, and embeds.
  • Changes to navigation hash parsing must preserve the boundary between pane state, view targets, search state, detached-window state, and external URLs.
  • Changes to tree selection or creation must preserve the tree's own context in popups and must keep active-note restoration separate from multi-selection.
  • Changes to selection-based creation must use the editor and note context that supplied the selection rather than the globally active tab.
  • Changes to read-only rules must keep the effective view, widget controls, temporary edit state, and save owner aligned.
  • Changes to rich text must stay consistent between editing, read-only rendering, source previews, included notes, attachments, and navigation jumps.
  • Changes to editor settings must preserve the split between live updates and rebuilds, including caret, scroll, and undo behavior.
  • Changes to embedded content must preserve display mode, edit mode, fullscreen, focus, local search, and closing-save state.
  • Changes to collection, map, or sidebar refreshes must preserve the note scope and reject stale results.
  • Changes to spreadsheet loading must preserve active sheet, cell, scroll position, formula results, attachment handling, locale, and read-only state.
  • Changes to canvas loading, search, or history must keep initial content and note switches outside the user's undo history, keep search movement temporary, and keep pictures newer than saved scenes.
  • Changes to mind-map selection or memo behavior must preserve the selected-node identity, read-only memo access, sanitization, and portable export.
  • Changes to attachment or PDF previews must preserve the split between user files and system previews, exact targets, load ownership, annotation saves, lazy media loading, and sibling scope.
  • Changes to chat input or provider setup must keep the displayed model, provider, note context, attachment support, streaming lock, search source, and permission state in agreement.
  • Changes to Markdown or code completion must keep the owning note, link targets, supported language list, and stale-request guards aligned with the reused editor.
  • Changes to Markdown block references must keep source markers, saved targets, preview blocks, and conflict recovery aligned.

Important failure modes

TriggerConsequenceGuard
A link or editor command uses the global active contextA split pane, popup, collection, or embed opens or creates the note in the wrong placeResolve the context that owns the clicked or focused surface
A tree popup creates a note through the active tab instead of its own contextThe new note appears in the wrong surface or parentPass the tree's note context to creation
A pinned context replaces its current noteThe pinned view loses the note it must preserveOpen a new context for another note
A navigation hash treats an external URL fragment as an internal note targetA web URL can change the client's note or pane stateAccept only the client document or approved internal URL forms
A read-only change reaches a widget without changing its write boundaryThe widget offers actions that the note cannot saveRe-resolve the effective view and its edit controls
A hidden reader treats its own editor's save as a foreign changeThe visible editor is covered by a needless reload stateSkip the owning component's echo and refresh the hidden reader when shown
An embedded editor closes before its save is trackedThe preview replaces the latest edit with older stored contentKeep closing content until the save result is known
A spreadsheet refresh drops its view stateThe user returns to the wrong sheet or cellSave and restore the active sheet, cell, and scroll state
Canvas initialization is treated as a user editEmpty startup state can overwrite the noteLoad initial content through the widget's initialization path
Canvas search moves the drawing but does not track the temporary viewEnding search leaves the user at an unexpected positionRestore the saved view only when the user did not move it
A canvas note switch enters undo historyUndo restores the previous note's drawingTreat a note switch as scene replacement
A canvas picture uses stored content while an edit is unsavedAn embedded drawing briefly hides the latest changeRender from unsaved editor content when available
A PDF message from an old load updates the current panePages, annotations, or outline data belong to the wrong documentMatch messages to the current note, context, and load token
A PDF annotation save completes after another document loadsThe old save changes the new document's displayed revisionAssociate saved bytes with the load that produced them
A mind-map memo commits against the current rather than stamped selectionText for one node overwrites another node's memoCommit only when the memo's selection identity still matches
An attachment link drops its attachment targetNavigation returns to the note but not the selected fileCarry the attachment target in the view scope
External media receives its source before user activationOpening a note starts an unwanted remote requestKeep external media behind an explicit play action
A chat tools choice differs from the send stateThe user expects access or permissions that the turn does not haveBuild the menu and send request from the same chat state
A map load completes after the user changes notesThe old graph appears in the new note's surfaceIgnore results from a disposed or superseded map load
A reused Markdown or code editor keeps the prior completion targetA note link or child note is created under the wrong noteRead the current completion target when the list opens
A Markdown source line is mapped to the wrong preview blockOutline, highlight, or search navigation lands at the wrong contentKeep source-line markers aligned with rendered blocks and tabs
A Markdown block marker is copied before its IDs are savedThe reference opens the note but not the selected blocksSave the source and verify both reference ends before copying
A provider model request finishes after credentials changeAn old model list replaces the list for the new providerDrop results from superseded model requests
A search-provider check fails and is treated as a hard save blockA provider cannot be stored for later repairShow the failure and allow an explicit save-anyway path

Key files

FileWhy to read it
apps/…/note_context.tsPer-surface note identity, view targets, access state, focus, and save data
apps/…/navigation_state.tsURL state for note paths, view targets, split panes, and detached windows
apps/…/note_tree.tsHierarchical selection, multi-selection, lazy loading, branch movement, and context-aware creation
apps/…/link.tsContext-aware link targets and navigation
apps/…/NoteDetail.tsxEffective view selection and note-surface lifecycle
apps/…/split_note_container.tsSplit-pane ownership and navigation
apps/…/RightPaneContent.tsxSidebar tabs and widgets available for the active note
apps/…/TableOfContents.tsxHeading and widget outline navigation
apps/…/EditableText.tsxRich editing, selection actions, embeds, attachment changes, and context-aware saves
apps/…/CKEditor.tsxRich editor lifecycle, editor actions, and configuration boundaries
apps/…/config.tsRich editor capabilities, note targets, embeds, completion, and access-bound host actions
apps/…/mention_list_view.tsxNote, target, slash-command, and emoji completion behavior
apps/…/mobile_editor_toolbar.tsxMobile toolbar focus, keyboard space, and nested editor behavior
apps/…/ReadOnlyText.tsxRead-only rendering, search jumps, embeds, and navigation targets
apps/…/ContentEmbed.tsxEmbed layout, display modes, fullscreen, focus, and local actions
apps/…/content_embed_tools.tsEmbed toolbar, caret entry, local search, and reveal behavior
apps/…/TextEmbed.tsxEmbedded text preview and closing-save behavior
apps/…/TextEmbedEditor.tsxEmbedded note context, editor ownership, search, and closing saves
apps/…/attachment_saves.tsShared save ownership for note content and attachment changes
apps/…/Code.tsxEditable and read-only code surfaces, search, focus, and current-note editor state
apps/…/CodeEmbed.tsxEmbedded code preview, editing boundary, code settings, and save state
apps/…/editor_completions.tsxShared completion behavior for code and Markdown editors
apps/…/code_mime_types_card.tsxCode language choices used by code notes and code blocks
apps/…/Markdown.tsxMarkdown source-preview flow, source-line navigation, headings, and highlights
apps/…/MarkdownEmbed.tsxEmbedded Markdown source, preview, display modes, and save state
apps/…/Spreadsheet.tsxSpreadsheet access, focus, locale, and navigation integration
apps/…/persistence.tsxWorkbook content and view-state persistence
apps/…/Canvas.tsxCanvas editing, note links, embeds, search, and access state
apps/…/drawing_find.tsxSearch matches and temporary view changes inside canvas drawings
apps/…/persistence.tsCanvas load, save, history, attachments, and previews
apps/…/MindMap.tsxMind-map lifecycle, selection, access, saving, and export
apps/…/Attachment.tsxAttachment targets, previews, media, transcripts, and drawings
apps/…/Pdf.tsxPDF loading, page and annotation targets, outline state, and saves
apps/…/text_notes.tsxText editor, completion, replacement, and code-block settings
apps/…/appearance_fonts.tsxFonts and sizes for the tree, detail view, interface, and code
apps/…/ChatInputBar.tsxChat context, attachments, providers, and streaming input
apps/…/WebView.tsxExternal page setup, focus return, and session boundary