-
Notifications
You must be signed in to change notification settings - Fork 286
Handle the $ variables in Spotlight queries #2141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Latest QS is 10.9+ right? Don't see anything wrong with this though, as long as it doesn't break existing Spotlight Query stuff |
...is it worth adding unit tests for doing a query with the two examples given in #2140 ? :-) |
I wonder why this doesn’t like
|
Looks like NSPredicate and Spotlight use different syntax :( Edit: but still, that doesn't explain why it did work before, and not now. |
@pjrobertson Thanks, I knew there was some differences between the 2 syntaxes but wasn't able to find the actual documentation. @skurfer Was this running the fix or the |
I don’t see them using single quotes in any of the examples. Maybe that’s the problem, and not the asterisk.
The queries work with |
Differences are that NSPredicate mandates quoting constants and its LIKE clauses are not the same. We can fix that by making it try both syntaxes, but meh. |
Handle the $ variables in Spotlight queries
Along with a few others? Yes. I put it on my Remember the Milk Quicksilver list. |
Fixes #2140