Jump to content

How to search underscore "_" character in clipboard history?


Recommended Posts

Posted

It seems that underscore "_" character has special meaning when searching in clipboard history. Then I have following questions:
1. What is the purpose of underscore? And how to use it?
2. How to search literal underscore character?
 

Example here, I've input 8 underscore characters here, but the results seem unrelated at all:

image.thumb.png.11454f7ab870ef84a2b1798971affdae.png

  • 2 months later...
Posted (edited)

This seems like it could be related to how Alfred lets you search using wildcards, but the documentation for this is incomplete. @Vero made a mention of it a few years ago in reference to prefixing a search with an asterisk/wildcard star, so perhaps she could provide some insight.

 

In my testing, I've found the %, *, _, and space characters all have unique/unexpected behaviour when searching the clipboard history. This could also just be a bug, or at the very least a conflict with the clipboard history also being able to show snippets. Either way, it doesn't seem clear how one can search for items in the clipboard history containing the aforementioned characters.

Edited by FireFingers21
Posted

Welcome @Tay. This one slipped by at the time, sorry about that.

 

@FireFingers21 Thank you for pointing that out, making a note to look into that later. Do note that page is on file searching, not the Clipboard History.

 

To answer the original question, Alfred’s Clipboard History is saved in a SQLite database, which is why % is replaced with “zero or more characters” and _ is replaced with “any single character”. Then space and * behave the same as %, for ease of use and familiarity. Agreed we should document the behaviour. Will discuss ideas internally.

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