You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating scope based on work on #72 (knowledge wiki) and #78 (metadata layout).
The first bullet — files in path x have type y — is now the most immediately useful parsing hint. Two knowledge wiki spaces have been configured using the same knowledge_wiki schema. Right now they rely on schema-level aliases for type resolution, but folder-to-type mapping at the space config level would be cleaner.
Where fromFolder: true auto-maps folder names to type names (matching on type name, aliases, or matchers from the schema), and overrides handle cases where folder names don't match.
This connects to #73 (type inference from folder structure) which proposes this as a plugin-level config, and #78 which discusses separating type configuration from relationships in the schema metadata.
Also noting the other hint types (embedded nodes from headings, normalising titles) can stay low priority — they're useful but less immediately needed.
A good portion of the parsing hints discussed here are now implemented under plugins.markdown in space config (see docs/config.md and src/plugins/markdown/index.ts):
Folder-to-type mapping:typeInference supports mode: "folder-name" | "off" (default folder-name, matching leaf folder names against schema types/aliases) and folderMap (explicit folder-prefix overrides, including "." for the space root and "*" as a fallback). This covers the April 2026 scope.
Field remapping:fieldMap remaps source property names to canonical schema fields across frontmatter, inline fields, YAML blocks, and table columns (including remapping a custom title field to title).
Index page titles:folderIndex derives a display title from the containing folder name for configured index basenames (e.g. Overview, index).
Path/glob include/exclude & filename-based type inference: currently readSpaceDirectory reads all non-dot **/*.md files (skipping templateDir), and folderMap matches folder prefixes rather than arbitrary globs or filename patterns.
Space-config heading/section matchers: mapping a specific heading on a specific page/type to an embedded type (currently matchers only live in schema ``).
Positional selectors: e.g. "the nth bulleted list in page X is a list of Y nodes".
Regex title normalisation: beyond folderIndex and fieldMap -> title.
Tag-to-property mapping: e.g. extracting x:y tags into a schema field z.
Activity
mindsocket commentedon Apr 6, 2026
Updating scope based on work on #72 (knowledge wiki) and #78 (metadata layout).
The first bullet —
files in path x have type y— is now the most immediately useful parsing hint. Two knowledge wiki spaces have been configured using the same knowledge_wiki schema. Right now they rely on schema-level aliases for type resolution, but folder-to-type mapping at the space config level would be cleaner.This could take the form:
{ "name": "my-wiki", "path": "...", "schema": "knowledge_wiki.json", "plugins": { "markdown": { "typeInference": { "fromFolder": true, "overrides": { "Research": "source", "Personal": "note" } } } } }Where
fromFolder: trueauto-maps folder names to type names (matching on type name, aliases, or matchers from the schema), andoverrideshandle cases where folder names don't match.This connects to #73 (type inference from folder structure) which proposes this as a plugin-level config, and #78 which discusses separating type configuration from relationships in the schema metadata.
Also noting the other hint types (embedded nodes from headings, normalising titles) can stay low priority — they're useful but less immediately needed.
feat: folder-based type inference for markdown plugin
feat: folder-based type inference for markdown plugin
mindsocket commentedon Nov 30, 2026
Status update
A good portion of the parsing hints discussed here are now implemented under
plugins.markdownin space config (seedocs/config.mdandsrc/plugins/markdown/index.ts):typeInferencesupportsmode: "folder-name" | "off"(defaultfolder-name, matching leaf folder names against schema types/aliases) andfolderMap(explicit folder-prefix overrides, including"."for the space root and"*"as a fallback). This covers the April 2026 scope.fieldMapremaps source property names to canonical schema fields across frontmatter, inline fields, YAML blocks, and table columns (including remapping a custom title field totitle).folderIndexderives a display title from the containing folder name for configured index basenames (e.g.Overview,index).embeddedenables per-enclosing-type (or"*") extraction of plainheadings(withtype,minDepth,maxDepth),lists,tables, and fencedyamlBlocks, complementing schema-level ``matchers.What remains (if still wanted)
include/exclude& filename-based type inference: currentlyreadSpaceDirectoryreads all non-dot**/*.mdfiles (skippingtemplateDir), andfolderMapmatches folder prefixes rather than arbitrary globs or filename patterns.matchersonly live in schema ``).folderIndexandfieldMap->title.x:ytags into a schema fieldz.