Move comprehensive documentation (settings, templates, output targets, frontmatter presets, etc.) from the 510-line README into 9 focused files under docs/. README is now a scannable overview with links to each doc. Replace GitHub links with Codeberg equivalents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Frontmatter Presets
Define context configuration directly in your notes using ai-context frontmatter.
Basic Usage
Add an ai-context block to any note's frontmatter:
---
ai-context:
template: "code-review"
include-linked: true
link-depth: 2
include-tags:
- project/current
exclude-paths:
- archive/
max-tokens: 50000
---
Then use "Copy context from frontmatter preset" (via Command Palette) and the plugin automatically:
- Reads the preset configuration
- Traverses linked notes (up to specified depth)
- Collects notes with matching tags
- Applies exclusions
- Fits within token budget
- Applies the specified template
One hotkey, perfectly configured context.
All Options
ai-context:
# Apply a saved template by name
template: "code-review"
# Include linked notes
include-linked: true
link-depth: 2 # How deep to traverse (0-10)
# Include notes with these tags
include-tags:
- project/myproject
- status/active
# Exclude paths
exclude-paths:
- archive/
- templates/
# Exclude notes with these tags
exclude-tags:
- draft
- private
# Token budget
max-tokens: 50000
# Include the note itself
include-active-note: true