Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Concatenating to Clipboard?

Does anyone know of a utility (for Windows or Linux or MacOSX) that will append the selected contents to the clipboard? Rather than killing what's already there...(maybe using a different keyboard shortcut instead of Ctrl+C to do this?

And I don't mean multiple-clipboard items...

I mean concatenating multiple strings of text to the same clip that resides on the clipboard.

like image 716
leeand00 Avatar asked Feb 06 '09 21:02

leeand00


4 Answers

I found one! Lifehacker has featured it, although abet it being only for Windows here it is:

Clipchain

like image 182
leeand00 Avatar answered Nov 10 '22 11:11

leeand00


LaunchBar has this functionality, and I use it extensively.

To be honest, I don't use it for pictures, so I don't know how they handle it, but it handles text beautifully.

And the launch key is a double CMD/C (that's hold command and press C twice). Which is intuitive, because it is the same key combination. And next time you just do a normal CMD/C (once) for a normal copy, then we start again.

And what's more, there's clipboard history, so if you forget to double C, you haven't lost anything. And even more… I believe the shortcut access and paste options for the clipboard history is the best I have come across (and I have tried many utilities).

And, (finally), you get the benefits of LaunchBar's main asset as a launcher, which I've become so used to it, I can't live without it.

like image 39
Nic Avatar answered Nov 10 '22 09:11

Nic


There are a bunch of utilities that will keep a buffer/queue of the most recently clipped items.

To do the specific function you mention (append to existing item), it would seem fairly trivial to write an app to get the clipboard, save what's there, append the new stuff, then transfer the combined contents back to the clipboard.

A big caveat/gotcha... this would work fairly simply for text, but what about other formats? If there's an image on the clipboard, how would you handle appending text? Or vice versa?

like image 3
ahockley Avatar answered Nov 10 '22 11:11

ahockley


No, but it would be relatively easy to write one in C# (or lots of other languages too):

  1. Create an app that hides to the "system tray"
  2. It creates a keyboard hook
  3. When the appropriate key-combo is pressed, if the Clipboard format is text, get the current text, concatenate the selected text (getting the selected text would be the hard part), and puts it back into the Clipboard.
like image 1
ConsultUtah Avatar answered Nov 10 '22 10:11

ConsultUtah