qmd/example-index.yml
Tobi Lutke 691c56d051
Add YAML-based collections configuration system
- Create src/collections.ts module for managing collections in YAML
- Collections defined in ~/.config/qmd/index.yml instead of SQLite
- Support for nested contexts at any path level
- Global context applies to all collections
- Functions: load/save config, add/remove/rename collections
- Context management: add, remove, find best match for path
- Add yaml package dependency
- Include example-index.yml showing the clean YAML format

This is the foundation for removing collections and path_contexts
tables from SQLite, moving all configuration to YAML.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-13 09:56:56 -05:00

60 lines
1.9 KiB
YAML

# QMD Collections Configuration
# Location: ~/.config/qmd/index.yml
#
# This file defines all collections and their contexts.
# You can manually edit this file - changes take effect immediately.
# Global context applied to all collections
# Use this for universal search instructions or patterns
global_context: "If you see relevant [[WikiWord]] you can do a search for WikiWord to get more context on the matter"
# Collection definitions
collections:
# Meeting notes
Meetings:
path: /Users/tobi/Documents/Meetings
pattern: "**/*.md"
context:
"/": "Meeting notes and summaries"
# Archived content from Shopify
archive:
path: /Users/tobi/src/github.com/Shopify/archive/obsidian/archive
pattern: "**/*.md"
context:
# Context can be defined at any path level
"/Board of Directors": "Public communications with the Shopify BOD"
"/Context/": "Shopify Internal Podcasts, almost all of them hosted by Tobi"
"/Summit/": "Tobi's major internal Shopify Summit Keynotes"
"/": "Shopify archive - historical documents and communications"
# Daily journal entries
journals:
path: /Users/tobi/src/github.com/tobi/Brain/journals
pattern: "**/*.md"
context:
"/2024": "Daily notes from 2024"
"/2025": "Daily notes from 2025"
"/": "Logseq - daily notes. Unstructured text in logseq bullet point format"
# Knowledge base pages
pages:
path: /Users/tobi/src/github.com/tobi/Brain/pages
pattern: "**/*.md"
context:
"/": "Logseq knowledge base - structured notes and reference material"
# Technical RFCs
rfcs:
path: /Users/tobi/src/github.com/Shopify/codex/rfcs
pattern: "**/*.md"
context:
"/": "Request for Comments - technical design documents"
# Thematic collections
themes:
path: /Users/tobi/src/github.com/Shopify/codex/themes
pattern: "**/*.md"
context:
"/": "Thematic collections of important concepts and discussions"