chore: update readme for -c --capture

This commit is contained in:
Rasmus Wejlgaard 2025-11-17 21:43:13 +00:00
parent 0b88465e21
commit a180bd81fd

View file

@ -23,6 +23,9 @@ org tasks.org # Open specific org file
org /path/to/work.org # Open specific org file with path org /path/to/work.org # Open specific org file with path
org -m # Multi-file: Load all .org files in current directory org -m # Multi-file: Load all .org files in current directory
org -m /path/to/dir # Multi-file: Load all .org files in specified directory org -m /path/to/dir # Multi-file: Load all .org files in specified directory
org -c # Quick capture mode
org -c "Task description" # Quick capture with pre-filled text
echo "Task" | org # Pipe text to capture
``` ```
### Single-File Mode (Default) ### Single-File Mode (Default)
@ -35,6 +38,20 @@ org tasks.org # Opens tasks.org
org ~/work/project.org # Opens specific file org ~/work/project.org # Opens specific file
``` ```
### Quick Capture Mode
Use the `-c` or `--capture` flag to quickly add tasks without navigating through the UI:
```bash
org -c # Open directly in capture mode
org -c "Buy groceries" # Capture with pre-filled text
org -c "Write report" tasks.org # Capture to specific file
echo "Meeting notes" | org # Pipe text to capture
echo "Task" | org ~/work.org # Pipe to specific file
```
This is perfect for quickly capturing tasks from scripts, terminal workflows, or shell aliases. The capture mode skips the need to press 'c' once inside the application, making it faster to add quick TODO items.
### Multi-File Mode ### Multi-File Mode
Use the `-m` or `--multi` flag to load all `.org` files in a directory as top-level items. Each file appears as a top-level item in the interface, with its contents nested underneath. Changes made to items are automatically saved back to their respective files. Use the `-m` or `--multi` flag to load all `.org` files in a directory as top-level items. Each file appears as a top-level item in the interface, with its contents nested underneath. Changes made to items are automatically saved back to their respective files.