Jump to content

Ignore leading punctuation when searching snippets


Recommended Posts

Currently a search for github in snippet viewer/clipboard history won't find my snippet named Issue (GitHub)  as I'd expect… was tempted to file this as a bug, but I think it's just Alfred's search being naïve/speedy and using whitespace as word boundaries?

 

Kinda also relates to the search improvement suggestions over here:

 

Edited by tullyhansen
Formatting
Link to comment
Share on other sites

5 hours ago, tullyhansen said:

Alfred's search being naïve/speedy and using whitespace as word boundaries?

 

This is most likely what’s happening. From what Andrew has said about it, Alfred’s search is tuned for large datasets (simple, strict matching rules).

 

Given its limitations, it might be worth considering a naming scheme like GitHub: Issue instead. 

Link to comment
Share on other sites

Hey @deanishe – thanks for the heads up! I can see the argument for having search be the way it is – this just threw me, that's all. Thanks for the info and workaround!

 

I still like the idea that some leading punctuation might be ignored in this case, even if it was some subset (only usually paired characters – inverted commas, braces, parentheses?).

Link to comment
Share on other sites

1 hour ago, tullyhansen said:

some leading punctuation might be ignored

 

Andrew has talked about considering other characters as delimiters in addition to whitespace.

 

Something more radical may be required if Alfred is to support Pinyin.

 

We’ll have to wait and see.

 

 

Link to comment
Share on other sites

  • 3 weeks later...

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...