Hello, I’ve been working with Bear for a few weeks now and I’m really impressed. It’s sleek, fast and does exactly what I need.
But now I have a problem with the search. I can’t search for exact words.
For example:
Searching for Frank brings up results with Frank, but also with Frankfurt. So far, so good.
But searching for “Frank” also brings up Frankfurt as a search result. But that’s not what I need. So how can I search for an exact word?
Try “Frank ” rather than “Frank”.
Ah, okay. That’s a simple work-around. Thank you!
Still, “Frank” should really work, too.
It wouldn’t. Because the search term “Frank” would also show words like “Frankfurt” as result.
On the contrary, the quotation marks should limit the query. Your workaround would fail to find strings like “Frank,” and “Frank!”; a proper syntax for verbatim queries like I am proposing would not.
Of course, having regex in Bear would be even better.
Specific to the above example, in addition to @krssno’s space method, I think you can do:
"frank" -"frankfurt"
In my quick test just now, I could also keep adding negative terms, a la:
"frank" -"frankfurt" -"frankly" -"frankenstein"
Obviously this isn’t really scalable with common strings, but it can be used in a pinch.