Skip to content

Commit

Permalink
Support for focusing on folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rhydlewis committed Apr 19, 2018
1 parent e453e51 commit 66a7c54
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 46 deletions.
156 changes: 111 additions & 45 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>8ADB21DF-93B9-45C4-B426-C4F067279EA4</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string>Focus on folder</string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE</key>
<array>
Expand All @@ -85,6 +95,16 @@
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>8ADB21DF-93B9-45C4-B426-C4F067279EA4</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string>Focus on folder</string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>5B6F5381-8FA5-4F0F-8AE2-72759B703EA2</key>
<array>
Expand Down Expand Up @@ -1074,6 +1094,25 @@ end run</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>spaces</key>
<string></string>
<key>url</key>
<string>omnifocus:///folder/{query}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>DE1DBB96-5A92-4348-A75C-B01E043E1A6F</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -1088,7 +1127,7 @@ end run</string>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>.f</string>
<string>.n</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand All @@ -1100,15 +1139,15 @@ end run</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py -t f "{query}"</string>
<string>/usr/bin/python search.py -t n "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string>Search OmniFocus Folders for "{query}"</string>
<string>Search OmniFocus task notes for "{query}"</string>
<key>title</key>
<string>Search OmniFocus for Folders</string>
<string>Search OmniFocus for tasks via note contents</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
Expand All @@ -1117,29 +1156,10 @@ end run</string>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>47F32866-0DAD-43B2-B753-8E4B55655311</string>
<string>95713023-D4AC-4052-9177-7AAF20BDE0B1</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>spaces</key>
<string></string>
<key>url</key>
<string>omnifocus:///folder/{query}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>DE1DBB96-5A92-4348-A75C-B01E043E1A6F</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -1150,11 +1170,11 @@ end run</string>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>0</integer>
<integer>2</integer>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>.n</string>
<string>.lf</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand All @@ -1166,24 +1186,24 @@ end run</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py -t n "{query}"</string>
<string>/usr/bin/python search.py -t f</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string>Search OmniFocus task notes for "{query}"</string>
<string></string>
<key>title</key>
<string>Search OmniFocus for tasks via note contents</string>
<string>List all OmniFocus Folders</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>95713023-D4AC-4052-9177-7AAF20BDE0B1</string>
<string>4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE</string>
<key>version</key>
<integer>2</integer>
</dict>
Expand All @@ -1197,11 +1217,11 @@ end run</string>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>2</integer>
<integer>0</integer>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>.lf</string>
<string>.na</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand All @@ -1213,24 +1233,63 @@ end run</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py -t f</string>
<string>/usr/bin/python search.py -a -t n "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<string>Search OmniFocus active task notes for "{query}"</string>
<key>title</key>
<string>List all OmniFocus Folders</string>
<string>Search OmniFocus for active tasks via note contents</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<false/>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE</string>
<string>AEA7E1B6-D264-4723-ABE3-9A224C6232E0</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>68</integer>
<key>script</key>
<string>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</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>6</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>8ADB21DF-93B9-45C4-B426-C4F067279EA4</string>
<key>version</key>
<integer>2</integer>
</dict>
Expand All @@ -1248,7 +1307,7 @@ end run</string>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>.na</string>
<string>.f</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand All @@ -1260,15 +1319,15 @@ end run</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py -a -t n "{query}"</string>
<string>/usr/bin/python search.py -t f "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string>Search OmniFocus active task notes for "{query}"</string>
<string>Search OmniFocus Folders for "{query}"</string>
<key>title</key>
<string>Search OmniFocus for active tasks via note contents</string>
<string>Search OmniFocus for Folders</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
Expand All @@ -1277,7 +1336,7 @@ end run</string>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>AEA7E1B6-D264-4723-ABE3-9A224C6232E0</string>
<string>47F32866-0DAD-43B2-B753-8E4B55655311</string>
<key>version</key>
<integer>2</integer>
</dict>
Expand Down Expand Up @@ -1578,7 +1637,7 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus
<key>xpos</key>
<integer>1180</integer>
<key>ypos</key>
<integer>500</integer>
<integer>730</integer>
</dict>
<key>4AA59390-5138-4FA4-AAD1-BCA0CD3FC8EE</key>
<dict>
Expand Down Expand Up @@ -1629,6 +1688,13 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus
<key>ypos</key>
<integer>890</integer>
</dict>
<key>8ADB21DF-93B9-45C4-B426-C4F067279EA4</key>
<dict>
<key>xpos</key>
<integer>1380</integer>
<key>ypos</key>
<integer>720</integer>
</dict>
<key>95713023-D4AC-4052-9177-7AAF20BDE0B1</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -1722,7 +1788,7 @@ Well, I want it because I can't quickly search for, say, a task within OmniFocus
</dict>
</dict>
<key>version</key>
<string>1.2.6</string>
<string>1.2.7</string>
<key>webaddress</key>
<string>rhydlewis.net</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.6
1.2.7

0 comments on commit 66a7c54

Please sign in to comment.