Mardak wrote:fadsxcv wrote:Why were those weird semantics chosen?
It's to keep with the current "typing more keeps restricting results", but it was originally designed for restricting and not forcing matches. "search word" .. too many results from bookmarks "search word ^" .. only have history items.. continue searching "search word ^ match"
The weird semantics I was referring to was that the operator picks the crap on the lhs as the operand as opposed to the thing on the rhs i.e. you basically implemented Reverse Polish Notation. I find that it's A. way too hard to reason about when writing a query and B. not in the natural order people are used to with search engines like "site:mozilla.org filetype:pdf"
I can't really see people typing stuff and then going "whoops, no, I meant that I wanted restrict what I just typed to only search in the tag field". It seems more likely to me that they start with the thought "okay, now I want to search the tags using this query string" instead.
Speaking of which, how about implementing something like this:
When you hold down the ctrl key when the urlbar has keyboard focus, replace all the entries in the urlbar completion list with a list of all the keywords and a brief description of what it does. When the ctrl key is released, the entries revert back to the old list. If an entry was selected it will be pasted where the caret was.
This way A. keywords are more likely to be discoverable and B. it serves as a sort of cheatsheet (with autocompletion) so we don't have to memorize the arbitrary keyword list.