topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 1:35 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [FARR tip]  (Read 3846 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
[FARR tip]
« on: July 18, 2007, 12:22 PM »
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
« Last Edit: July 18, 2007, 12:32 PM by nitrix-ud »

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: [FARR tip]
« Reply #1 on: July 23, 2007, 05:15 AM »
sounds cool! Care to provide a downloadable alias (yes, I know how to copy'n'paste...)?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: [FARR tip]
« Reply #2 on: July 23, 2007, 05:20 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%


nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: [FARR tip]
« Reply #3 on: July 23, 2007, 06:21 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%
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)