From 66a7c54b8b62644e0075471e41621f2fad0ea807 Mon Sep 17 00:00:00 2001 From: Rhyd Lewis Date: Thu, 19 Apr 2018 08:12:17 +0100 Subject: [PATCH] Support for focusing on folders --- info.plist | 156 +++++++++++++++++++++++++++++++++++++---------------- version | 2 +- 2 files changed, 112 insertions(+), 46 deletions(-) diff --git a/info.plist b/info.plist index 7405110..ab677d7 100644 --- a/info.plist +++ b/info.plist @@ -72,6 +72,16 @@ vitoclose + + destinationuid + 8ADB21DF-93B9-45C4-B426-C4F067279EA4 + modifiers + 1048576 + modifiersubtext + Focus on folder + vitoclose + + 4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE @@ -85,6 +95,16 @@ vitoclose + + destinationuid + 8ADB21DF-93B9-45C4-B426-C4F067279EA4 + modifiers + 1048576 + modifiersubtext + Focus on folder + vitoclose + + 5B6F5381-8FA5-4F0F-8AE2-72759B703EA2 @@ -1074,6 +1094,25 @@ end run version 2 + + config + + browser + + spaces + + url + omnifocus:///folder/{query} + utf8 + + + type + alfred.workflow.action.openurl + uid + DE1DBB96-5A92-4348-A75C-B01E043E1A6F + version + 1 + config @@ -1088,7 +1127,7 @@ end run escaping 102 keyword - .f + .n queuedelaycustom 3 queuedelayimmediatelyinitially @@ -1100,15 +1139,15 @@ end run runningsubtext Searching... script - /usr/bin/python search.py -t f "{query}" + /usr/bin/python search.py -t n "{query}" scriptargtype 0 scriptfile subtext - Search OmniFocus Folders for "{query}" + Search OmniFocus task notes for "{query}" title - Search OmniFocus for Folders + Search OmniFocus for tasks via note contents type 0 withspace @@ -1117,29 +1156,10 @@ end run type alfred.workflow.input.scriptfilter uid - 47F32866-0DAD-43B2-B753-8E4B55655311 + 95713023-D4AC-4052-9177-7AAF20BDE0B1 version 2 - - config - - browser - - spaces - - url - omnifocus:///folder/{query} - utf8 - - - type - alfred.workflow.action.openurl - uid - DE1DBB96-5A92-4348-A75C-B01E043E1A6F - version - 1 - config @@ -1150,11 +1170,11 @@ end run argumenttrimmode 0 argumenttype - 0 + 2 escaping 102 keyword - .n + .lf queuedelaycustom 3 queuedelayimmediatelyinitially @@ -1166,24 +1186,24 @@ end run runningsubtext Searching... script - /usr/bin/python search.py -t n "{query}" + /usr/bin/python search.py -t f scriptargtype 0 scriptfile subtext - Search OmniFocus task notes for "{query}" + title - Search OmniFocus for tasks via note contents + List all OmniFocus Folders type 0 withspace - + type alfred.workflow.input.scriptfilter uid - 95713023-D4AC-4052-9177-7AAF20BDE0B1 + 4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE version 2 @@ -1197,11 +1217,11 @@ end run argumenttrimmode 0 argumenttype - 2 + 0 escaping 102 keyword - .lf + .na queuedelaycustom 3 queuedelayimmediatelyinitially @@ -1213,24 +1233,63 @@ end run runningsubtext Searching... script - /usr/bin/python search.py -t f + /usr/bin/python search.py -a -t n "{query}" scriptargtype 0 scriptfile subtext - + Search OmniFocus active task notes for "{query}" title - List all OmniFocus Folders + Search OmniFocus for active tasks via note contents type 0 withspace - + type alfred.workflow.input.scriptfilter uid - 4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE + AEA7E1B6-D264-4723-ABE3-9A224C6232E0 + version + 2 + + + config + + concurrently + + escaping + 68 + script + on run + tell application "OmniFocus" + tell application "System Events" + tell process "OmniFocus" + set frontmost to true + click menu item "Projects" of menu "Perspectives" of menu bar 1 + end tell + end tell + + set theQuery to "{query}" + tell application "OmniFocus" to tell the default document + set folderList to flattened folders whose id is theQuery + tell the front document window to set focus to folderList + activate + end tell + end tell +end run + scriptargtype + 0 + scriptfile + + type + 6 + + type + alfred.workflow.action.script + uid + 8ADB21DF-93B9-45C4-B426-C4F067279EA4 version 2 @@ -1248,7 +1307,7 @@ end run escaping 102 keyword - .na + .f queuedelaycustom 3 queuedelayimmediatelyinitially @@ -1260,15 +1319,15 @@ end run runningsubtext Searching... script - /usr/bin/python search.py -a -t n "{query}" + /usr/bin/python search.py -t f "{query}" scriptargtype 0 scriptfile subtext - Search OmniFocus active task notes for "{query}" + Search OmniFocus Folders for "{query}" title - Search OmniFocus for active tasks via note contents + Search OmniFocus for Folders type 0 withspace @@ -1277,7 +1336,7 @@ end run type alfred.workflow.input.scriptfilter uid - AEA7E1B6-D264-4723-ABE3-9A224C6232E0 + 47F32866-0DAD-43B2-B753-8E4B55655311 version 2 @@ -1578,7 +1637,7 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus xpos 1180 ypos - 500 + 730 4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE @@ -1629,6 +1688,13 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus ypos 890 + 8ADB21DF-93B9-45C4-B426-C4F067279EA4 + + xpos + 1380 + ypos + 720 + 95713023-D4AC-4052-9177-7AAF20BDE0B1 xpos @@ -1722,7 +1788,7 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus version - 1.2.6 + 1.2.7 webaddress rhydlewis.net diff --git a/version b/version index 3c43790..c04c650 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.2.6 +1.2.7