deanishe/alfred-workflow — pull request #11 by smargh (2014-04-08 19:39:34+00:00)
Title: fix issue with mutli-word queries in `filter`

This derives from the most-up-to-date version of alfred-workflow. I've added a small section in the `filter` method to accomodate multi-word queries. As it stood, multi-word queries would only match if they were the exact start of the `value` string. I've added an addendum to the `MATCH_ATOM` rule, which, if the query is more than one word, will check if the set of the query's words is a subset of the value's atoms. Thus, the `value` "Horace and the rhetoric of authority" would match on the `query` "horace authority", while previously this query would have returned no results.