Organize Your Knowledge
Group documents by source directory with patterns, includes, and excludes. Search specific collections or across everything.
Key Benefits
- Multiple document sources
- Glob patterns for filtering
- Include/exclude rules
- Per-collection search
Example Commands
gno collection add ~/notes --name notes
gno collection list
gno search 'term' -c notes
Get Started
Ready to try Collections?
What Are Collections?
Collections are named groups of documents from specific directories. They let you:
- Organize different types of content
- Search within specific scopes
- Apply different patterns per source
Creating Collections
At Initialization
gno init ~/notes --name notes --pattern "**/*.md"
Adding More
gno collection add ~/work/docs --name work
gno collection add ~/research --name papers --pattern "**/*.pdf"
Collection Configuration
Each collection can have:
collections:
- name: notes
path: /Users/you/notes
pattern: "**/*.md"
exclude:
- .git
- node_modules
- "*.tmp"
languageHint: en
- name: work
path: /Users/you/work/docs
pattern: "**/*"
include:
- "*.md"
- "*.pdf"
Searching Collections
Search Everything
gno search "important topic"
Search Specific Collection
gno search "meeting notes" -c notes
gno query "project deadline" --collection work
List Collections
gno collection list
gno collection list --json
Use Cases
- notes: Personal Obsidian/Logseq vault
- work: Company documentation
- papers: Research PDFs
- code: Project README files