3 ms·
Yes. that's interesting. dateAdded is actually part of what the bookmark API returns, so this one would be rather easy to handle. Last date visited is more com
by Fannon 5y ago
Yes. that's interesting. dateAdded is actually part of what the bookmark API returns, so this one would be rather easy to handle.
Last date visited is more complicated. This extension only has it because it merges the results from history API with the bookmarks API. But then it can only go back as far as we fetched the browser history and as far as that exists.
How would you imagine such a query would look like? Right now, the extension only has "search modes" which limit the search results to certain types of entries.
- canada_dry 5y agoOne option might be to just sort the scored items by bookmark/dateAdded so related newest bookmarks float to the top. Another beginning might be to just increase score if the item falls within the range in either the bookmark/dateAdded or the history/lastVisited. This probably covers many useful scenarios e.g. I recall bookmarking (or visiting) a page regarding regex within the last 12mos, so that related item should float to the top. Note: I haven't played around enough - it might just naturally do this anyway if the order being returned is based on how recent the item is in history or bookmarks!
- Fannon 5y agoYes, sorting sounds like a good option. I've just built in some additional scoring that increases points if last visited was recently. This only works for very recent visits (history/lastVisited), within the time frame that history is being fetched, though. For bookmark/dateAdded, it might help to display the date added and to allow sorting by it as you suggest. I'm thinking about it. However, the scope of the extension is rather not being a complete bookmark / history manager replacement. Rather a quick search / navigation tool.
- Fannon 5y agoThanks to your feedback, I've added a new option to display "dateAdded" for bookmarks and two new options how the recentness of dateAdded affects the score. By default this is very low. (It will take a while until this is published at the stores). See https://github.com/Fannon/search-bookmarks-history-and-tabs#user-configuration https://github.com/Fannon/search-bookmarks-history-and-tabs#... (first example, and for more details the options.js). Regarding the sorting / filtering: I see the value in it, but this would be more work and I want to think it through first. Maybe I'll find the time to add it. If yes, maybe I'll add a "sort" mode that cycles between "score" (default)" "last visited" or "date added". Although only score is available for all types of results.