todo: add cli capture for omnifocus
This commit is contained in:
parent
c50ac53f49
commit
ae3309ab88
1 changed files with 10 additions and 0 deletions
10
home/bin/executable_todo
Normal file
10
home/bin/executable_todo
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue