extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Google Chrome] Sort Search Bookmarks results by frecency

Open kirill-markin opened this issue 2 months ago • 1 comments

Extension

https://www.raycast.com/Codely/google-chrome

OS Version

macOS 26.6.2

Description

Search Bookmarks never reorders its results. useBookmarkSearch only filters the list, so the order is whatever getBookmarks returns from Chrome's bookmarks file. A bookmark I open through Raycast every day ranks the same as one I opened once, and when several bookmarks match a query the order looks arbitrary to the user.

Proposal: sort the matches with useFrecencySorting from @raycast/utils, call visitItem when a bookmark is opened, and expose a Reset Ranking action so a mis-hit is undoable.

Two details that matter:

  • The list item component is shared with Search History (ChromeListItems.TabHistory, distinguished by its type prop), so ranking has to be wired at the bookmark call sites only. Search History keeps its ORDER BY last_visited DESC and must not be reordered.
  • useFrecencySorting preserves the input order for items that were never visited, so the list looks exactly as it does today until you actually open something.

Related: #8665 (Arc, closed as stale rather than declined), #18214 (Safari), #26013 (Google Chrome, ordering inside Search All).

Who will benefit from this feature?

Anyone who uses Search Bookmarks as their main way to open sites. The more bookmarks you keep, the more the current order costs: matches for a short query are effectively unranked, so you type more characters than the bookmark needs.

Anything else?

No response

kirill-markin avatar Sep 13 '26 18:09 kirill-markin

Thank you for opening this issue!

🔔 @rgomezcasas @bromanko @crisboarna @andreaselia @rtyke @karolre @Aiee @nagauta @a-laughlin @tleo19 @Tarocch1 @rsperezn @drewbabel @haydencbarnes @pernielsentikaer @j3lte @0xdhrv @xmok @hayk94 @alexibuild @os-moussao you might want to have a look.

💡 Author and Contributors commands

The author and contributors of Codely/google-chrome can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Sep 13 '26 18:09 raycastbot