[GRLUG] clipboard query
Eric Beversluis
ebever at researchintegration.org
Wed Mar 20 22:10:41 EDT 2013
On Wed, 2013-03-20 at 21:08 -0400, Topher wrote:
> On 03/20/2013 09:06 PM, Eric Beversluis wrote:
> > I'm looking at
> > http://net.tutsplus.com/tutorials/javascript-ajax/exactly-how-to-create-a-custom-jquery-accordion/.
> >
> > Each bit of code there has a prompt "copy to clipboard" and when you
> > click it, an alert tells you the code is now on the clipboard. But when
> > I try to paste it into a text editor, nothing pastes. What am I missing?
> > Or is it just broken?
>
> Linux window managers and desktop environments often have several
> clipboards going on at once.
>
> Often when those say it's copied you can paste it by doing ctrl-v or
> right click and pasting, like Windows.
>
> I almost never use that one, I use the one that gets rendered by middle
> click, and it's annoying as heck.
>
> It's possible it simply doesn't work in Linux because the flash copier
> tries to put it someplace it can't.
Interesting. I didn't realize about different clipboards, and I've never
used the middle button very much. Turns out you have to select the code
and then use the 'copy to clipboard' function. It then pastes with the
middle button but not with ctrl-v or right-click,paste. Not sure what
having that 'copy to clipboard' adds, if you have to select all the code
first anyway, given ease of ctrl-c and ctrl-v or of right-click and
'copy.' What I was hoping for was something that saved the bother of
manually selecting all the code in the snippet.
If you select the code and use the usual ctrl-c, all three methods of
pasting give you that selection. Again, if you've selected and used the
'copy to clipboard' function, only the middle button gives that
selection. ctrl-v gives whatever was previously in the clipboard.
More information about the grlug
mailing list