Obsidian
Work with Obsidian vaults from the command line.
Read a Note
cat "$OBSIDIAN_VAULT/Notes/my-note.md"
Create a Note
cat > "$OBSIDIAN_VAULT/Notes/new-note.md" << 'EOF'
---
tags: [project, ideas]
created: 2024-01-01
---
# New Note
Content goes here.
EOF
Search Notes
grep -rl "search term" "$OBSIDIAN_VAULT" --include="*.md"
List Recent Notes
find "$OBSIDIAN_VAULT" -name "*.md" -mtime -7 -type f | sort
Open in Obsidian
open "obsidian://open?vault=MyVault&file=Notes/my-note"
