In-editor aids
services/in-editor-aidsChecked by automation only
still a draft
Written 2026-10-16 by ktl-librarian (automation). Last checked 2026-10-16 by ktl-librarian (automation).
The full record
- Checks
- 2026-10-16 by
ktl-librarian(automation)
- 2026-10-16 by
- Sources
- Is part of
- Depends on
- Pointed to by
- KTL Curator plugin (has part)
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/ktl/curator/knowledge/services/in-editor-aids- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Overview
Section titled “Overview”The plugin entry point (src/main.ts) connects four small, mostly import-free modules, but holds none of their logic itself:
- Field reference:
src/fields.tsbuilds aFieldDoc[](resolveFieldDocs). It pairs a fixed, editorialFIELD_ORDERlist with descriptions pulled from the pinned vocabulary manifestsrc/lokf-vocab.json, whichscripts/build-vocab.mjsfills from the schema, so the wording never forks from the schema.src/field-modal.ts’sFieldReferenceModal(a read-onlySuggestModal) is the “Look up a LOKF field” command’s surface, because Obsidian’s Properties widget has no per-property description API. - Inline trust marker:
src/inline.tsis a CodeMirror 6ViewPlugin. It decorates a concept’s frontmatter with its trust tier as you edit, driven by aTrustMarkerHostthe plugin implements. It works in Source mode only, because Live Preview renders frontmatter through Obsidian’s own Properties widget instead. - Frontmatter autocomplete:
src/suggest.ts’sKtlCuratorSuggest(anEditorSuggest) offers values, never key names, inside a concept’s frontmatter. The pure, Node-testedsrc/suggest-context.ts(detectSuggestContext,withinFrontmatter) decides what kind of value is being typed (an actor, a status or a date), so the Obsidian-facing half stays thin. - Shared trust-tier vocabulary:
src/trust-label.ts’strustLabel/handoffLabel(tones:confirmed|automation|unchecked|draft|retired) is the one wording that the status bar, the inline marker and the review card all render. It is derived from aTrustRecord(trust-engine.md) and never stored. Adraftstatus gives thedrafttone only while no person has confirmed the concept. A confirmed concept that a question set back to draft keeps theconfirmedtone, and while the question waits its handoff hint reads “Reopened - a question waits for the curator”.