Jump to content
vitor

Snippets: search snippet content as well

Recommended Posts

this seems to be addressed in 3.4 ("Update Snippets feature preferences search to also search snippet content") but perhaps only when they are part of a workflow? 

Share this post


Link to post
Share on other sites

@giovanni It’s not addressed. It only works when in Alfred Preferences, for editing snippets. What this thread is about is searching contents when wanting to paste the snippets, which is what you do most of the time.

Share this post


Link to post
Share on other sites

When this was first highlighted a while back, I did some basic research around performance and noise, and found it made the clipboard viewer quite a bit less useful for getting to your clipboard history results as you regularly saw unwanted snippets placed above history items. This is essentially why I kept snippets to keyword and title (think of the title as a kind of metadata or tags field which is also searched), which keeps the history search much more useful.

 

While I'll unlikely change the clipboard viewer behaviour, I do have two new workflow objects planned - a Snippet Filter and Clipboard Filter, both of which will be decently configurable and will allow for both getting to snippets via their content, and also workflow based processing of these items.

 

Cheers,

Andrew

Share this post


Link to post
Share on other sites
1 hour ago, Andrew said:

I did some basic research around performance and noise, and found it made the clipboard viewer quite a bit less useful for getting to your clipboard history results as you regularly saw unwanted snippets placed above history items.

 

I don’t get the relationship. After I call a snippet I don’t see it in the clipboard history viewer. Also, the clipboard history viewer does search by content.

Share this post


Link to post
Share on other sites

@vitor the clipboard history can ONLY search by content as you don't assign keywords or titles to items like you do with snippets.

 

When searching the clipboard history, snippets are shown before clipboard history items. When playing with this and making snippets match much wider, you got snippets almost always showing above clipboard history items when you didn't want them to be there.

Share this post


Link to post
Share on other sites

Alfred 3.6 pre-release b895 has had a bit of an overhaul for the snippet matching. The snip keyword and clipboard history viewer snippet search now share the same search code so they are consistent.

 

I've also added some options in the Features > Snippets preferences to also match by snippet content.

 

Finally, you can now also turn off the word based matching for snippets so they are consistent with the non-anchored broad search of the clipboard history content.

 

Let me know how you get on!

 

Cheers,

Andrew

Share this post


Link to post
Share on other sites

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