-
Notifications
You must be signed in to change notification settings - Fork 22
searching: order should not matter #141
Comments
Would you find that feature useful? |
in the case of spaces i would expect something like |
In terms of UX, I think it's debatable whether or not that's more intuitive than the status quo. It also poses the design question of whether a space always means we're entering a new search string - which would change the behaviour of searching through titles like In terms of code difficulty, we'd need to think about the ability to escape those double quotes as well. I'd imagine this will increase code complexity - at the moment the queries are obtained with some relatively simple regular expressions. |
I agree with the problems of escaping and complexity. But i guess the most common use case is refining the search. And there it shouldn’t matter if one search |
w4grfw is basically right. If search MUST be simple, make it greedy and interpret the search string multiple ways (matching tags eagerly). This seems complex because it looks like you have to do a separate search on every possible parse of the search string - but actually it's not. You just need to interpret tags, description, title and url (and any other metadata you'd care to search) of each bookmark as one combined unstructured block of text and run the search on all such blocks (strip out #'s from the matchable tag text, because they are special). Then, as a further refinement, you can make the input box modal so that typing |
Can anything requiring memorising proprietary keybinds really be described as simple? I don't think you can use the Escape key in a WebExt popup as it's hardcoded to close it. |
SamHH, when I said "modal", I was not talking about vi. I was only referring to having a "mode" that you enter (by hitting I also feel I need to clarify what I was proposing - because I probably wasn't clear enough. I edited my comment a few times and it never came out quite right. I'll start at the beginning. Let's just say you're reimplementing a brand new BM search: Step #1 - implement search over metadata elements converted into an unstructured text format - descriptions, tags, titles, URL's (any and all relevant data/metadata you can find in the BM's) - all become unstructured text in this initial and most basic mode. User facing interface is perfectly simple. Step #2 - add a mode (user will notice just a little and not care very much that it's a mode) that the user enters by typing As far as The former syntax should be transformable to the latter, so however you want to implement it under the hood - do it that way. But the point is, the user never has to deal with those icky open and close quotes, and the search remains simple in the simple case, and in the slightly less simple case - it becomes only slightly less simple . The other point I made before was regarding 'backslash' for escaping literal I hope I've been more clear. I guess I got a little tongue tied in my last comment, and I hope I am less so now... |
I'm not sure if I documented it anywhere, but I remember really struggling to implement something like this before - basically where you've rich content within/atop an input. I think I might have hit this issue when trying to implement preexisting tag suggestions. I'm somewhat attached to the idea of a "clean" query string which can be copy/pasted without having to worry about formatting. Ideally, for me, there'd be some sort of clear formatting to demonstrate how the query is being interpreted, but it'd still be fundamentally plain-text. |
The user is not going to want to deal with quotes just to input a multiword tag is what I would say. Modes for special characters fixes this. Now, in my comment on #98 I mention the possibility of using autocompletion. Autocompletion would obviate in many cases the issue of the user having to enter the quotation marks, but wouldn't obviate the user having to see the quotation marks, unless the autocompletion also moved the autocompleted tag queries to the end. The user is unlikely to ever want to see I still like the modal idea, and when I read "fundamentally plain text" it sounds like you mean plain ascii. One solution for this, is to comma terminate multikeyword tags. This goes somewhat well with conventions already established, but leaves a dangling comma. If order doesn't matter, and |
Just commenting to say the current behavior of searching titles for exact matches is, for me, very unintuitive. It also doesn't match buku's behavior, I don't think. If I have a bookmark "build a boat" and I type "build", see a bunch of other "build" results, I don't want to have to type "a boat", my intuition is to be able to type "boat". |
@michaelbeaumont That's more a matter of fuzzy finding not being supported, see: #121 |
“title #tag” does work, but “#tag title” doesn't.
Bukurow 5.0.2.0
Google Chrome 80.0.3987.132
The text was updated successfully, but these errors were encountered: