Using Clipboard Tricks

Top  Previous  Next

FARR v2 has some tricks to help you use the clipboard in various ways.

 

First, you can check the checkbox on the General Options tab to tell FARR to copy any selected text to the clipboard when ever FARR is triggered, for use in commands.

 

Then, you can use the clipboard in your Alias Groups in various ways.  For example imagine that we select the text "DonationCoder" and then trigger FARR:

 

One way is to write %cliptext% in an alias command, which will be replaced with clipboard contents.

So an alias might be: gsearch | http://www.google.com?query=%cliptext%
When user types gsearch is will open a search with clipboard text (DonationCoder)

 

Another way is to use $$c in an alias command which will use the $$1 regular expression field IF it exists, or else clipboard if not.

So an alias might be: gsearch $$c | http://www.google.com?query=$$c
When user types "gsearch hello" it will open a search to hello
When user types "gsearch" it will open a search to DonationCoder

 

Another way is to specifically type $c in your search string to have it replaced with clipboard text:

So an alias might be: gsearch | http://www.google.com?query=$$1
When user types gsearch hello it will open a search to hello
When user types gsearch $c it will open a search to DonationCoder

 

Also see the "copyclip" virtual action entry.