obsidian-promptfire/docs/context-sources.md
Luca G. Oelfke e7243e3cc1
docs: slim down README and extract detailed docs to docs/
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>
2026-02-06 12:46:15 +01:00

44 lines
1 KiB
Markdown

# Context Sources
Extend your context with content from outside the vault.
## Source Types
| Source Type | Description | Example |
|-------------|-------------|---------|
| **Freetext** | Custom text snippets | Project-specific instructions |
| **External File** | Files outside the vault | `~/.config/rules.md` |
| **Shell Command** | Command output | `git log --oneline -10` |
## Positioning
Sources can be positioned as **prefix** (before vault content) or **suffix** (after vault content).
### Example Output
```
# === PREFIX: Project Notes ===
Custom context here...
---
# === VAULT.md ===
Vault content...
---
# === SUFFIX: git log ===
abc1234 feat: add new feature
def5678 fix: resolve bug
...
```
## Settings
| Setting | Description |
|---------|-------------|
| **Freetext** | Static text snippets |
| **External File** | Absolute path to file outside vault |
| **Shell Command** | Command + args with timeout |
| **Position** | Prefix (before) or Suffix (after) vault content |
| **Show labels** | Add source name headers to output |