qmd-search
qmd - Quick Markdown Search
Fast local search engine for markdown notes, documentation, and Claude session history.
Quick Start
# Keyword search (instant, preferred)
qmd search "authentication flow"
# Get full document
qmd get "path/to/file.md"
# Search specific collection
qmd search "react hooks" -c claude-sessions
Search Modes
qmd search (Default - Use This)
BM25 keyword matching. Instant results.
qmd search "error handling"
qmd search "typescript generics" -n 10
qmd search "api design" --json
qmd vsearch (Use Sparingly)
Vector similarity search. Slower - loads local models on each run.
qmd vsearch "concepts similar to dependency injection"
qmd query (Avoid)
Hybrid search with LLM reranking. Slowest, often less reliable.
Common Commands
Search
qmd search "query" # default keyword search
qmd search "query" -n 10 # more results
qmd search "query" -c collection # specific collection
qmd search "query" --json # JSON output
qmd search "query" --files # file paths only
qmd search "query" --full # full document content
qmd search "query" --all --min-score 0.3 # all matches above threshold
Retrieve Documents
qmd get "path/to/file.md" # full document
qmd get "path/to/file.md:50" # from line 50
qmd get "path/to/file.md" -l 100 # max 100 lines
qmd multi-get "journals/2025-01*.md" # glob pattern
qmd multi-get "doc1.md, doc2.md" # multiple files
Collections
qmd collection list # show all collections
qmd collection add /path --name notes --mask "**/*.md"
qmd ls # list files in collections
qmd ls collection-name # list files in specific collection
Maintenance
qmd status # index health
qmd update # re-index changed files
qmd embed # update vector embeddings
Output Formats
| Flag | Description |
|---|---|
--json |
JSON with snippets |
--files |
docid, score, filepath, context |
--csv |
CSV output |
--md |
Markdown output |
--xml |
XML output |
--full |
Complete document content |
Search Options
| Option | Description |
|---|---|
-n <num> |
Number of results (default: 5) |
-c, --collection <name> |
Filter to collection |
--all |
Return all matches |
--min-score <num> |
Minimum similarity score |
--line-numbers |
Add line numbers |
Guidelines
- Prefer
qmd search- instant BM25 keyword matching - Use
qmd vsearchsparingly - slow due to model loading - Avoid
qmd query- hybrid search often unreliable - Use
--jsonor--filesfor agent-friendly output - Use
-c collectionto narrow scope when you know the target
Index location: ~/.cache/qmd/index.sqlite
More from somtougeh/dotfiles
technical-svg-diagrams
Generate clean, minimal technical SVG diagrams in a consistent Cloudflare-inspired style. Use when creating architecture diagrams, flow diagrams, or component diagrams for blog posts and documentation.
115tdd
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
2organization-best-practices
This skill provides guidance and enforcement rules for implementing multi-tenant organizations, teams, and role-based access control using Better Auth's organization plugin.
2grill-me
Relentless interrogation of a plan, design, or idea before planning or implementation. This skill should be used when the user wants to stress-test thinking, get grilled on their design, identify blind spots, or mentions "grill me". Covers product, technical, operational, and strategic risks through one-at-a-time questioning with recommended answers.
2context7
Retrieve up-to-date documentation for software libraries, frameworks, and components via the Context7 API. This skill should be used when looking up documentation for any programming library or framework, finding code examples for specific APIs or features, verifying correct usage of library functions, or obtaining current information about library APIs that may have changed since training.
2excalidraw-diagram
Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts.
2