todo: add cli capture for omnifocus

This commit is contained in:
Matthew Ryan Dillon 2025-12-03 14:17:10 -05:00
parent c50ac53f49
commit ae3309ab88

10
home/bin/executable_todo Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
if [ -z "$*" ]; then
echo "Usage: todo <task name>"
exit 1
fi
TASK_NAME="$*"
ENCODED_NAME=$(printf %s "$TASK_NAME" | jq -sRr @uri)
open "omnifocus:///add?name=$ENCODED_NAME&autosave=true"