Jump to content

Search Omnifocus: free text search your Omnifocus data


Recommended Posts

What is this?

 

This is a workflow that allows you to run free text searches against your OmniFocus data.

 

Why would I need this?

 

Well, it's difficult to quickly search for, say, a task using OmniFocus' own search box since OmniFocus restricts the results to the current perspective or selection. Other people have noticed this too.

 

Where can I get it?

 

From Packal or GitHub.

 

How do I use it?

 

The README has full instructions but, here's a starter for 10. Search for all tasks within OmniFocus (irrespective of status) with .s

search-for-tasks.png

Link to comment

This is great, most useful and nicely implemented, thanks!

 

Two things on my wishlist:

1) The workflow does not work when searching for words with international characters (in my case Swedish characters Å, Ä and Ö) - could this be fixed?

2) It would be useful to have an option to search also within completed tasks.

Link to comment

Hi,

 

When I perform a search (using the keyword .s), the result shows only on-hold tasks. I can't find any active tasks. I also tried searching active tasks (using the keyword .sa), but the result are the options to search Google/Amazon/Wikipedia for my search term.

 

I'm not sure if this is an issue with my system or with the workflow. I hope you can help me out because I think your workflow is very useful.

 

Thanks!

 
Louis
Edited by boysbytes
Link to comment

@boysbytes. Odd. Can you do the following:

 

  1. Open Alfred Preferences
  2. Choose Workflows and choose Search Omnifocus in the workflow list
  3. Toggle debugging mode on (press the bug icon beneath the Help button on the right hand side)
  4. Choose "All information" in the Log dropdown list
  5. Run the Search Omnifocus workflow (.s) and you should see lines of text appear in the blank space beneath the workflow
  6. Press Copy and send me a message via my profile page with the results (don't post the results here)

and I'll look into it.

Link to comment

@cands - point 1 below fixed in latest version

 

hg8Tblj.png

 

This is great, most useful and nicely implemented, thanks!

 

Two things on my wishlist:

1) The workflow does not work when searching for words with international characters (in my case Swedish characters Å, Ä and Ö) - could this be fixed?

2) It would be useful to have an option to search also within completed tasks.

Link to comment
  • 8 months later...
  • 2 months later...

The workflow would not show the icons for the items found on my Mac. After some failed troubleshooting attempts I finally realized that the problem was that OmniFocus has to reside directly in /Applications for the icons to load. I prefer to organize my Non-MAS applications in subfolders, which broke that part of the workflow.

 

So if anyone else suffers from missing task icons, move OmniFocus to /Applications. Maybe a note about this in the readme file would be a good idea. Alternatively, the workflow could scan for the location of OmniFocus and adjust the paths accordingly.

 

By the way, I already really liked the workflow before, but now that it is fully working for me, it's absolutely fantastic!

Edited by Blake
Link to comment

Hi Blake - thanks for the feedback and glad you like workflow!

 

Currently, the workflow looks for icons in these Omnifocus locations:

  • /Applications/OmniFocus.app/
  • /Applications/OmniFocus.localized/OmniFocus.app/

I'd be interested to know where you put Omnifocus originally?

 

Cheers,

Rhyd
Link to comment

 

Hi Blake - thanks for the feedback and glad you like workflow!

 

Currently, the workflow looks for icons in these Omnifocus locations:

  • /Applications/OmniFocus.app/
  • /Applications/OmniFocus.localized/OmniFocus.app/

I'd be interested to know where you put Omnifocus originally?

 

Cheers,

Rhyd

 

 

My OmniFocus application was located at /Applications/-other/OmniFocus.app before I moved it to /Applications. I have a bunch of subfolders (e.g., -audio, -graphics, -tools, etc.) in /Applications that I like to use to organize my applications. I have more than 250 applications on my Mac and this system makes it much easier for me to find those applications/tools that I use very infrequently and which names I often don't remember.

 

Maybe the ideal solution would be for the workflow to search for the location of OmniFocus on first launch using the method outlined by deanishe. This location could then be remembered by the workflow and only when loading the icons failed, the location would need to be determined again.

 

If that is too much trouble for what might be a small group of users, just putting a brief notice in the readme file, that the OmniFocus application needs to reside in /Applications, would already help a lot.

Link to comment

This workflow is awesome, thanks! I just installed and tried it out, I knew I had a task that I'd set a due date for within a few weeks. I normally live in my "today" perspective in OmniFocus. To find this task I would've had to made OF the active app, changed perspectives, clicked into the search field and typed my search term. Instead I just used this and it found it right away. Great stuff.

Link to comment
  • 4 months later...

Hi - grabbing the link's pretty easy:

 

  1. Open Alfred, type 'alf' and choose 'Show Alfred Preferences'
  2. Choose Workflows and search for Search Omnifocus
  3. In the workflow area, right click and choose Outputs > Copy to Clipboard
  4. In the Copy to Clipboard popup, leave the text {query} as is and hit Save
  5. Drag a link from the Open URL actions to Copy to Clipboard
  6. Done

Hope that helps.

 

Cheers

step 4.png

step 5.png

Link to comment
  • 1 year later...

I am having a wierd issue while using this workflow.

I can only use certain aspects of this workflow, while others are not working.

For example when i type '.v' followed by the name of one of mcustom perspectives, it works fine fine.

However when i try any of the other search terms like '.r', '.d', '.sa

 etc, the workflow shoes me an error.

 

I am using macOS Mojave and Alfred 3.7

 

I have already gone into my secruity preference pane and granted Ful Disk Access to Alfred.

Link to comment

Hi,

 

Are you using OmniFocus v2 or v3? Can you send/attach your workflow log so I can investigate pls?

 

To send these logs:

  • Open Alfred preferences (keyword 'alf')
  • Click 'Workflows' in the tool bar
  • Choose 'Search Omnifocus' from the list of workflows on the left
  • Click on the 'Debug' to toggle debugging mode (see Alfred's help page for more info)
  • Choose 'All information' from the Log dropdown
  • Open Alfred and type the query that's not working
  • Copy the debug output and post it as a response - I'll take a look.

Cheers,

Rhyd

Link to comment

Thanks for updating the workflow for OmniFocus 3! It works great for me on macOS 10.13.6/Alfred 3.7/OmniFocus 3.0.1. A feature request: The workflow has a lot of options to list all tasks with certain criteria, but there doesn't seem to be a way to just list (as complement to search) all tasks in the inbox. That would be useful when there are not too many tasks in the inbox (personally I normally have less than five inbox items). 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...