DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [tip] paste command + %cliptext%  (Read 6,580 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
[tip] paste command + %cliptext%
« on: August 15, 2007, 10:16 AM »
the paste command is really nice...

for example you can create the bbcode alias (just call the alias bbcode, no regex...)
with the following result :

Code
paste [quote]%cliptext%[/quote]
paste [url]http://%cliptext%[/url]
paste [b]%cliptext%[/b]
paste [i]%cliptext%[/i]

handy :
invoke FARR with the autocopy
type "bbocde quo"
press enter
that's it you selected text is now surrounded by
Code
[quote][/quote]

@mouser, i did not manage to get the clipboard content in the result display
Code
[i]%cliptext%[/i] | paste [i]%cliptext%[/i]
the first %cliptext% does not show
« Last Edit: August 15, 2007, 10:03 PM by nitrix-ud »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: [tip] paste command + %cliptext%
« Reply #1 on: April 17, 2008, 02:09 AM »
can i use the %cliptext% keyword in turn with the $$1 keyword in an alias? i mean if there is text in the clipboard, then %cliptext% is used but if i typed something then $$1 takes preference.

e.g. to search IMDB, the following contains $$1 as default but i'm looking for a way to merge both keywords.

Code
IMDB - $$1[or %cliptext%] | http://www.imdb.com/find?q=$$1[or %cliptext%] /ICON=icons\imdb.ico

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: [tip] paste command + %cliptext%
« Reply #2 on: April 17, 2008, 02:14 AM »
i think $$a was made for this -- uses $$1 if provided, or cliptext if not.

it's $$c as lanux points out below.
« Last Edit: April 17, 2008, 03:50 AM by mouser »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: [tip] paste command + %cliptext%
« Reply #3 on: April 17, 2008, 03:46 AM »
thanks mouser for pointing in the right direction. it's $$c btw. ;)

ws-farr-alias-clipboard-1.png

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: [tip] paste command + %cliptext%
« Reply #4 on: April 17, 2008, 03:50 AM »
ah yes, $$c it is.

Original address: https://www.donationcoder.com/forum/index.php?topic=9577.0