Repository navigation
Google Chrome history search - #172
Conversation
This uses the WASM compiled version of sqlite since [native modules are not supported](raycast#135). The query for matching is a rudimenary `title LIKE '%query%'` where clause. I intend to make this a bit more sophisticated to handle multiple terms. It is only using the native throttle support to debounce access to the database. It's possible that this will need more tuning or better resource management. It also does not yet support choosing a specific profile for history. This would be possible by setting that string in preferences. For now it defaults to "Default".
It should use the name of the app as the Subtitle
There was a problem hiding this comment.
Awesome @bromanko 💪 💯
It's the right way to do it, it would be silly to add another extension if it's extendable in this extension.
I have tested your addition and it working very well, good job 💪
Another suggestion is to add yourself to "contributors" instead since there can only be one author according to Metadata and Configuration
Bug found in "change tab" script
If you have a lot of tabs like me it seems like there is a limit somehow, selecting one of the last gives me this error (and not changing tab) CC: @rgomezcasas
I know it's not related to your addition but to the extension itself
Thanks for making this extension even better 💣
This improves the database lifecycle management. Now, the db is loaded once when the component is mounted and disposed when the component is unmounted. Note that I have not been able to see the disposal logic get called. I suspect that this is either due to the way that Raycast handles extension component lifecycles or the dev environment operating differently.
CMD+C is reserved for global use
|
Are this one ready to be tested again @bromanko 💪 |
Let me add better search logic and then I'll call it done. It's almost complete. |
This commit changes the search from comparing the entire string as a single pattern to tokenizing the words and matching each independently. All terms must be found for it to match.
|
OK. Have at it. |
|
Awesome @bromanko 🔥 It still seems to fail sometimes when changing tabs (see attached video) - other times when changing tab it's selecting the wrong one and I have to try multiple times to get it right. za41xS2ZJVAUaAXo.mp4The second time it actually changed the tab, but not to the right one, and crashed. c3molgiZc65aFex4.mp4 |
|
I haven’t looked in to debugging the tab action. I think it would be better to tackle that in a separate PR?
… On Oct 23, 2021, at 12:22 PM, Per Nielsen Tikær ***@***.***> wrote:
Awesome @bromanko 🔥
It still seems to fail sometimes when changing tabs (see attached video) - other times when changing tab it's selecting the wrong one and I have to try multiple times to get it right.
https://user-images.githubusercontent.com/38033107/138568784-824991ec-9f9a-4247-bc4e-0f84e3a5f771.mp4
The second time it actually changed the tab, but not to the right one, and crashed.
https://user-images.githubusercontent.com/38033107/138568828-5984b6f7-3bd8-4d24-b884-5e5a3d6bc684.mp4
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
You're right 💯 , I'll make an Issue tomorrow about that part instead so it's possible to solve outside this PR. A small suggestion could be to add date(time) of the history entry, is that possible @bromanko Awesome work 💪 |
|
@bromanko did you see my latest comment, I'm not sure if it's even possible 😄 Aso, there is a merge conflict that needs to be solved, we are so close to merging it! 🚀 |
|
I can use the |
Chrome stores dates as the number of microseconds since 01/01/1601.
|
I added |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Awesome work @bromanko 💪 It looks really 💣
I think we're ready to get this launched 🚀
* main: (69 commits) Make encrypted Bear notes searchable (raycast#253) Twitter: Small improvements (raycast#262) Add rice score (raycast#207) Search npm Packages (raycast#243) Add Visual Studio Code Project Manager extension (raycast#216) Add Domainr Extension (raycast#181) envato extension (raycast#205) GitBook: [raycast#152] Update changelog Syncing from raycast-macos Add information about warnings for tos noncompliance (raycast#250) Add Rebrandly extension (raycast#51) Kill process improvements (raycast#231) Add google translate extension (raycast#201) Deepcast: Add PT-PT and PT-BR and replace deprecated EN with EN-US/EN-GB (raycast#242) Open With App: Force popToRoot after open action (raycast#245) Update pull_request_template.md [tower-extension] Add support for branch-names with slashes (raycast#246) Google Chrome history search (raycast#172) Add Swift Evolution extension (raycast#218) Add Crypto Crawler to get the current coin price. (raycast#110) ... # Conflicts: # extensions/safari/src/cloud-tabs.tsx # extensions/safari/src/reading-list.tsx
* Support for searching Google Chrome history This uses the WASM compiled version of sqlite since [native modules are not supported](raycast#135). The query for matching is a rudimenary `title LIKE '%query%'` where clause. I intend to make this a bit more sophisticated to handle multiple terms. It is only using the native throttle support to debounce access to the database. It's possible that this will need more tuning or better resource management. It also does not yet support choosing a specific profile for history. This would be possible by setting that string in preferences. For now it defaults to "Default". * Fix missing type annotation * Fix command titles It should use the name of the app as the Subtitle * Add title to OpenInBrowserAction * Move bromanko to contributors * Improve database lifecycle management This improves the database lifecycle management. Now, the db is loaded once when the component is mounted and disposed when the component is unmounted. Note that I have not been able to see the disposal logic get called. I suspect that this is either due to the way that Raycast handles extension component lifecycles or the dev environment operating differently. * Change copy to clipboard shortcut CMD+C is reserved for global use * Share the favicon code between commands * Always stringify the error message * Improve search query This commit changes the search from comparing the entire string as a single pattern to tokenizing the words and matching each independently. All terms must be found for it to match. * Load the last visit date from database Chrome stores dates as the number of microseconds since 01/01/1601. * Group entries by date

I am opening this PR for early feedback. It extends another extension rather than creating a new one. I'm uncertain if folks are OK with that. cc: @rgomezcasas, @thomaspaulmann
Description
This uses the WASM compiled version of sqlite since native modules are
not supported.
The query for matching is a rudimentary
title LIKE '%query%'whereclause. I intend to make this a bit more sophisticated to handle
multiple terms.
It is only using the native throttle support to debounce access to
the database. It's possible that this will need more tuning or better
resource management.
It also does not yet support choosing a specific profile for history.
This would be possible by setting that string in preferences. For now it
defaults to "Default".
Type of change
improvement for somebody else's extension
Screencast
Screen.Recording.2021-10-21.at.9.27.56.PM.mov
Checklist
512x512