ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

[FARR tip]

(1/1)

nitrix-ud:
i wanted to share a trick with the community  :D

the following "clipboard" alias :

--- ---^clip$
--- ---$$c | restartsearch $$c
will "paste" the clipboard content to the search box (I know you can Ctrl+V to paste the clipboard content :huh:)

sounds dumb ... but it is in fact really handy when used in conjunction with aliases with powerful regex masks :

for instance this one which recognize urls...

--- ---
^(https?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$

you can have one that recognize email, telephone, etc.

now let's say you choose the "auto copy selected text to clipboard on trigger" option in the general tab of FARR

you can just select a url (for instance) ... open FARR ... find the "clipboard" alias press enter then the url alias is triggered  :D
my "url" alias offers me different things : open the url in my default browser, in firefox, in opera, save the url to my delicious account and more to come...

if you assign an hotkey to this "clipboard alias" :

* you select some text (url, email, etc.)

* press the hotkey

* press enter (to bad we can't skip that step)

* one of your aliases with powerful regex masks is triggered
hope it gives you some ideas

Cheers, Nitrix

TucknDar:
sounds cool! Care to provide a downloadable alias (yes, I know how to copy'n'paste...)?

mouser:
you can now do this without the need for nitrix clever trick, and solve the need to hit enter as well, by simply creating a hotkey with set searchtext of: %cliptext%

nitrix-ud:
you can now do this without the need for nitrix clever trick, and solve the need to hit enter as well, by simply creating a hotkey with set searchtext of: %cliptext%
--- End quote ---
very true

but the trick still holds if you want to build some "structured" aliases
i personnaly use it as the first result for my generic "clipboard" alias... named "c" which offers me different other aliases to choose from

so i invoke FARR with the "c" alias thanks to the new hotkey system...
if a press enter it replaces "c " in the search box by the clipboard content
handy if you don't want to have to many hotkeys...

i personnaly have two :
one to invoke FARR
one to invoke FARR with my "c" alias (and selected text copied to the clipboard)

Navigation

[0] Message Index

Go to full version