npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

alfred-search-omnifocus

v1.0.15

Published

This is a workflow for Alfred that performs free text searches on OmniFocus data

Downloads

89

Readme

alfred-search-omnifocus

What is this?

This is a workflow for Alfred that performs free text searches on OmniFocus data.

Doesn't something like this already exist?

Yes! This workflow is based on the Search Omnifocus workflow which no longer works with the latest version of macOS. This is a rewrite in Javascript and uses Alfy to do the heavy lifting.

Why would I want such a thing?

Well, I want it because I can't quickly search for, say, a task within OmniFocus using OmniFocus' search field. OmniFocus restricts search results to the current perspective or selection. Other people have noticed this too .

How to install

Pre-requisites

This workflow relies on Node.js. Follow these instructions to install.

  1. Install the workflow using npm

    npm install --global alfred-search-omnifocus

  2. Open Alfred Preferences (alf) and - if you have the old version of the workflow installed - disable the existing workflow "Search Omnifocus" by right clicking on it and unchecking Enabled

  3. Run Alfred command find-of-db to copy the path of the Omnifocus database to your clipboard. If you have both Omnifocus 3 and Omnifocus 4 installed you will get both paths on your clipboard, and you need to paste the paths somewhere and choose which one you want.

  4. Run Alfred command set-of-db and then paste (⌘-V) the database path as an argument

Note, if you're using zsh, fish or another shell, type bash before step 1 to ensure that you install the workflow using the system node.js installation

Troubleshooting

I'm seeing errors in the Alfred log related to NODE_MODULE_VERSION or better-sqlite3?

Yes, this has been a pain to resolve. Try this to fix:

  1. Open Alfred preferences
  2. Right click on the Search OmniFocus JS workflow and choose Open in Terminal
  3. Check that you're using the correct version of node as used by Alfred (as of writing v18.12.1) bash node -v
  4. In your Terminal app - in the Alfred workflow folder opened in the step before! - remove the node_modules folder then install the correct packages for your environment by following these commands: rm -rf node_modules/ npm install
  5. Then retry the worfklow

It has also been reported that installing Xcode can resolve this issue.

Hang on? Why do I have to type bash?

Alfred runs the workflow runs from the macOS installed version of bash (/bin/bash) so the workflow version of node.js expects packages that the workflow depends on to be built for the macOS version of node.

How to use

Note

This workflow only works with OmniFocus 3 and OmniFocus 4.

Searching for tasks

  • Search for all tasks within OmniFocus (irrespective of status) with .s:

Note, use .sc to search for completed tasks only.

Searching for tasks in the Inbox and the Library

  • Search for all tasks within OmniFocus (whether you've processed them or not) with .se.

Searching the inbox

  • Search the OmniFocus inbox with .i:

or just list all tasks in the inbox with .li.

Searching for projects

  • Search for projects with .p:

Searching for tags or contexts

  • Search for a specific tag with .t or context with .c:

or just list all tags with .lt or contexts with .lc:

  • Search for a specific context with .c:

Searching for perspectives

  • Search for a specific perspective with .v:

or just list all perspectives with .lv:

Searching for folders

  • Search for a specific folder with .f:

or just list all folders with .lf:

Searching for task or projects notes

  • Search for a specific note in a task or project with .n:

  • Search for a specific note in a flagged task .ng
  • Search for a specific note in active task .na

Narrowing results

  • Search just for active tasks with .sa:

or just for active projects with .pa:

  • Search all flagged tasks with .g:

or for flagged and active tasks with .ga:

  • Not supported yet Show the 10 most recently modified tasks with .r:

or show the 10 most recently modfified and non-completed tasks or projects with .ra:

  • Not supported yet Show overdue or due items with .d:

Thanks to...