1.7 KiB
1.7 KiB
Quick Note Capture
Quickly capture information into Apple Notes from the command line.
Instructions
-
Determine capture type - Ask what kind of note the user wants to create:
- Quick thought/idea
- Meeting notes
- Code snippet
- Reference information
- Journal entry
-
Gather content - Get the note content from the user or from context:
- If they provide content, use it directly
- If capturing from clipboard, help them pipe it in
- If from a file, read and include it
-
Generate appropriate title - Based on content type:
- Quick thoughts:
Idea - [brief description] - Meeting:
Meeting - [topic] - YYYY-MM-DD - Code:
Code - [language/purpose] - Reference:
Ref - [topic] - Journal:
Journal - YYYY-MM-DD
- Quick thoughts:
-
Create the note - Use the notes CLI:
notes create "Title" << 'EOF' Content here EOF -
Confirm creation - Verify the note was created:
notes show "Title"
Quick Capture Templates
Idea Note
notes create "Idea - [description]" << 'EOF'
## Idea
[Main idea]
## Context
[Why this came to mind]
## Next Steps
- [ ] Action item
EOF
Meeting Note
notes create "Meeting - [topic] - $(date +%Y-%m-%d)" << 'EOF'
# [Topic] Meeting
## Attendees
-
## Agenda
1.
## Discussion
## Action Items
- [ ]
## Next Meeting
EOF
Code Snippet
notes create "Code - [description]" << 'EOF'
## Purpose
[What this code does]
## Code
```[language]
[code here]
Usage
[How to use it] EOF
## Important Notes
- Always quote titles with spaces
- Use heredoc syntax for multi-line content
- Verify note was created successfully
- Suggest reviewing with `notes show` after creation