When you materialize cards, the plugin builds a folder hierarchy based on where your Canvas file lives and what color each card was. The root folder is always named after the Canvas file itself, and inside it each color maps to a dedicated sub-folder. This keeps your materialized notes organized by visual intent without any manual folder management.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/redsheep913/Canvas-Card-Materializer/llms.txt
Use this file to discover all available pages before exploring further.
Folder Path Formula
canvas-parent-directory— the directory that contains the.canvasfile in your vault.canvas-basename— the filename of the Canvas without the.canvasextension.ColorFolder— a sub-folder named after the card’s color (see the table below).filename— the sanitized, deduplicated name derived from the card’s first line.
Concrete Example
Consider a Canvas saved atDocuments/Project-ASR.canvas that contains cards of three different colors:
Documents/Project-ASR.canvas, baseFolderPath becomes Documents/Project-ASR, and a Yellow card is placed at Documents/Project-ASR/Yellow/<filename>.md.
Automatic Folder Creation
You never need to create folders manually. Before writing each file the plugin callsensureFolderExists(), which splits the full target path on / and walks each segment — creating any missing folder along the way via vault.createFolder():
Documents/Project-ASR/Yellow/ path is created in one shot, even if none of those folders existed before.
Vault Root Canvases
If your Canvas file sits at the vault root (no parent directory),canvasFile.parent.path is an empty string. The plugin detects this and sets baseFolderPath to just the Canvas basename, so the color sub-folders are created directly at the vault root:
Color Sub-Folder Reference
The plugin maps Obsidian’s internal color identifiers to human-readable folder names using the following lookup:| Sub-Folder Name | Card Color | Obsidian Color ID |
|---|---|---|
Default | Grey / no color | 0 |
Red | Red | 1 |
Orange | Orange | 2 |
Yellow | Yellow | 3 |
Blue | Blue | 4 |
Green | Green | 5 |
Purple | Purple | 6 |
Default folder.