Welcome Guest.   Make a donation to an author on the site September 03, 2014, 02:19:16 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: [FARR tip]  (Read 1750 times)
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« on: July 18, 2007, 12:22:28 PM »

i wanted to share a trick with the community  cheesy

the following "clipboard" alias :
[copy or print]
$$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...
[copy or print]

^(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  cheesy
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
« Last Edit: July 18, 2007, 12:32:02 PM by nitrix-ud » Logged
TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: July 23, 2007, 05:15:59 AM »

sounds cool! Care to provide a downloadable alias (yes, I know how to copy'n'paste...)?
Logged
mouser
First Author
Administrator
*****
Posts: 33,295



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: July 23, 2007, 05:20:29 AM »

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%

Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 23, 2007, 06:21:50 AM »

Quote
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%
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)
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.034s | Server load: 0.03 ]