amebalabs / TRex

Copy any text on your screen, stop retyping.
https://trex.ameba.co
MIT License
1.17k stars 36 forks source link

Ability to search the selected text #11

Closed hasantahir closed 2 years ago

hasantahir commented 2 years ago

First thanks for creating this lovely tool, it has been really helpful in tasks such as scanning a QR code, and reading text. Would it be possible to have an option in which the text that is recognised is also searched over a search engine of choice? Presently, I am retrieving the recognised text from the clipboard and pasting it into a browser to search it.

This would be most helpful when reading text from shared screens in online meetings.

Thank you.

melonamin commented 2 years ago

You can do that, kinda...

In Preferences -> Automation, set "Trigger URL Scheme" to https://www.google.com/search?q={text} this will force TRex to open google search instead of adding text to the clipboard.

Ideally I'd like to add a separate hot-key to trigger URL Scheme based automation.

hasantahir commented 2 years ago

Thanks for this. As you stated, it would be great to have a separate shortcut to trigger this feature.

melonamin commented 2 years ago

Try this beta build

hasantahir commented 2 years ago

Sorry, the link doesn't seem to work.

melonamin commented 2 years ago

My bad, try this one https://github.com/amebalabs/TRex/releases/tag/v1.4-beta-1

hasantahir commented 2 years ago

Thanks. This works when the captured text contains a URL but not when just some text. Shouldn't the automation scheme https://www.google.co.uk/search?q={text} trigger search for a selected text as well?

melonamin commented 2 years ago

Another one https://github.com/amebalabs/TRex/releases/tag/v.1.4.-beta-2

hasantahir commented 2 years ago

This works great. Thank you!