Skip to main content

Module config

Module config 

Source
Expand description

Vault configuration parsed from config.toml (§5.8).

All fields have defaults so a vault with no config file behaves identically to one with every value spelled out.

Structs§

AppearanceConfig
CaptureConfig
CategoriesConfig
CategoryDef
GeneralConfig
IndexConfig
VaultConfig

Enums§

Theme

Constants§

AUTO_COLORS
Five default category color stops (OKLCH). The order and ids are the canonical built-in palette; CategoriesConfig::default ships them as the initial items so a fresh vault inherits a usable sidebar. The previous sixth entry, the note (blue) category, was retired: orphan refs (memos with category = "note") fall back to the default card surface via resolve_category_color because the id is no longer in items.

Functions§

resolve_category_color
Resolve a category id to its OKLCH color string. Returns the inbox color (empty/transparent) when the id is empty or not in items, so an unknown / legacy category never crashes rendering — it falls back to the default card surface (no tint).