Jump to content
luckman212

List Filter - match items that contain Parentheses ( )

Recommended Posts

Specs

  • macOS 10.15 (19A602)
  • Alfred 4.0.5 [1118]


I've got a List Filter in a workflow that contains an item named "foobar (baz)". I want to be able to select this item by matching on the word "baz" (in the parentheses).

image.png.ea79b8d6c6a64c20077fec292a207dd0.png

 

But, when I try this, nothing is found:

image.png.d80b7946b5e57565c3af2b1749ff7cb0.png

 

If I remove the parens from the list item name, it works as expected.

image.png.964b10033e937e96c5642c2e3d23e53f.png

 

Can this be fixed? The same bug also applies to other forms of brackets e.g. curly braces `{ }` and square brackets `[ ]`

Edited by luckman212

Share this post


Link to post
26 minutes ago, luckman212 said:

The same bug

 

Technically, it's not a bug, but a deliberate implementation choice.

 

I don't really understand why, but matching is extremely (excessively, imo) strict in Alfred. The application/preferences search  has a nice fuzzy algorithm, and you can tweak the settings a bit yourself with File Filters. But otherwise, you're stuck with strict "word starts with" matching that doesn't consider dashes, brackets or any other punctuation to be delimiters.

 

You could try adding your voice to one of the many threads requesting more flexible matching in the Feature Suggestions forum.

Share this post


Link to post

Ok. Hmm, that's a shame. Most of those threads your link points to are about "fuzzy" or searching... this is similar but not quite the same.

 

I'm not asking for the filter to match "foobar" when typing just "ba". I simply want Alfred to consider a 100% match to words that are bounded by common punctuation marks such as period, dash, parens, brackets etc. Seems like this is a much smaller leap than asking @Andrew to implement true fuzzy searching across the app.

Share this post


Link to post
16 minutes ago, luckman212 said:

this is similar but not quite the same.

 

I understand that. I'm not stupid.

 

But there aren't any results for "brackets" or "parentheses", and "search" brings up a whole lot of irrelevant, so I thought that it would be better that you post in an existing thread on more flexible search semantics rather than open yet another one.

 

16 minutes ago, luckman212 said:

Seems like this is a much smaller leap than asking @Andrew to implement true fuzzy searching across the app.

 

It is, but they're not unrelated, are they?

 

Edited by deanishe

Share this post


Link to post

I'm going to look at fixing this for 4.1, and also bringing across the options from the Script Filter when you select "Alfred Filters Results" for consistency.

 

Cheers,

Andrew

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...