-
Notifications
You must be signed in to change notification settings - Fork 21
Unified search mode #93
Comments
@MattsJones would you like to work on the changes required for this? |
Hey Bud. I'm interested but just a matter of finding time atm. I was thinking that history might be tricky as it seems slower than the other modes so maybe leave that out for now? Also, I liked the idea of having different types of results in one box with icons stating what type they were. Not sure if you had any thoughts on it. |
We can do some benchmarks and see how much of a difference there is in speed with and without history. If it is a noticeable difference then yeah maybe we can remove it.
The color on the left side of each suggestion indicates the type as well as the icon on the right side when a suggestion is selected. I'm not sure if that is enough or if the types even matter to users? 🤷♀️ To implement this feature I think you should just be able to modify the code for recentlyViewed: https://github.com/lusakasa/saka/blob/master/src/suggestion_engine/server/providers/recentlyViewed.js#L73-L78 Note that this code is messy and inefficient. If you can think of a better way to do it feel free to use that. 😄 |
I think Vimium works around performance constraints by maintaining an in-memory history cache. Fauxbar works even better, but uses websql, which is being deprecated. |
Did a little bit of work on this and have been running it on my machines to try it out. Current changes are:
My experience is positive so far though. I've switched to this as my default mode and haven't found a need to use any other modes. I love the "don't care where, just find it for me" style of search. Honestly id be happy if the extension just had this one mode but that might be just me haha. Also perf is slightly slower, I can feel a small delay. But it still feels responsive enough for me to use effectively. If you're interested here's my work in progress code. Tests still failing lol. https://github.com/mattsjones/saka/tree/unified-search |
As mentioned by @MattsJones in #92 we can add a unified search mode that allows the user to search all modes at once. This might have some performance issues that would need to be addressed. Also need to figure out how users would use the mode.
The text was updated successfully, but these errors were encountered: