From ae3309ab88941142dd3b819f8fb5b2b22827784c Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Wed, 3 Dec 2025 14:17:10 -0500 Subject: [PATCH] todo: add cli capture for omnifocus --- home/bin/executable_todo | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 home/bin/executable_todo diff --git a/home/bin/executable_todo b/home/bin/executable_todo new file mode 100644 index 0000000..b39c8a6 --- /dev/null +++ b/home/bin/executable_todo @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -z "$*" ]; then + echo "Usage: todo " + exit 1 +fi + +TASK_NAME="$*" +ENCODED_NAME=$(printf %s "$TASK_NAME" | jq -sRr @uri) +open "omnifocus:///add?name=$ENCODED_NAME&autosave=true"