Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
think about doing a text cut-n-paste between two terminal windows of different widths where the source is multiple lines, some of which wrap.
many windows apps do this wrong, most *nix apps handle this correctly.
You must be joking
Posted Nov 7, 2010 4:13 UTC (Sun) by zander76 (guest, #6889)
Posted Nov 7, 2010 4:35 UTC (Sun) by zander76 (guest, #6889)
Posted Nov 7, 2010 4:58 UTC (Sun) by drag (subscriber, #31333)
In Linux on Gnome:
1. Open up Gnome-terminal. Highlight some text and right click, select copy. Highlight some other text.
2. Close out Gnome-terminal
3. Open up Gedit.
4. Middleclick to paste, then right click paste.
Notice how you have 2 copy-n-paste buffers. Highlighting text makes the first buffer go away and be replaced by new text. This makes it almost entirely worthless for anything except working with a terminal. Using middlelick copy is one of those habits I wish I can break myself from doing.
The second buffer works in a sane way.
5. Open up firefox. Highlight some text, Right click copy.
6. Close out firefox.
7. Attempt to paste text into Gedit.
Notice something wrong?
The only people that get it right are Gnome apps that religiously follow the HIG. Probably KDE-only apps get it right, too. Everybody else gets it wrong almost every single time. Some apps will clear everything out every time. Some apps will override one buffer with another in order to be helpful. All sorts of really weird and crappy behavior.
It's something that is fundamentally broken with X and has been since the beginning of time. I don't think there is any sane way to fix it as nobody has been able to do so. Even with aggressive clipboard managers it's still a bit hit or miss if it works sometimes.
Posted Nov 7, 2010 5:05 UTC (Sun) by dlang (✭ supporter ✭, #313)
I do get annoyed once in a while by apps that use the second clipboard, and I've never taken the time to figure out the difference between the two. but for the most part I find that if just highlighting doesn't work, shift + highlighting almost always does.
Posted Nov 7, 2010 13:51 UTC (Sun) by drag (subscriber, #31333)
A simple example is try pasting a URL into your browser bar, at pretty much any point without opening a extra tag. Also many many times I'll lose my buffer by simply clicking on a terminal window and accidentally highlighting some whitespace or some tiny portion of text.
The advantage to the second buffer is mainly that you control when things are inserted. With a primary, traditional, X copy buffer it is often wiped out many times during the course of normal text manipulation in a GUI.
I wouldn't mind having 2 buffers at all except that how applications and X handles these buffers is broken. It's very inconsistent so you either have to learn how each and every application you typically use is going to behave, or you just end up having to copy stuff multiple times quite often.
Posted Nov 8, 2010 2:46 UTC (Mon) by madscientist (subscriber, #16861)
Posted Nov 8, 2010 3:39 UTC (Mon) by dlang (✭ supporter ✭, #313)
Posted Nov 8, 2010 7:07 UTC (Mon) by mp (subscriber, #5615)
Posted Nov 8, 2010 7:14 UTC (Mon) by dlang (✭ supporter ✭, #313)
Posted Nov 8, 2010 3:54 UTC (Mon) by sfeam (subscriber, #2841)
Posted Nov 8, 2010 15:53 UTC (Mon) by jackb (subscriber, #41909)
Posted Nov 8, 2010 8:56 UTC (Mon) by nicooo (guest, #69134)
Posted Nov 9, 2010 5:20 UTC (Tue) by njs (guest, #40338)
Posted Nov 14, 2010 4:57 UTC (Sun) by tnoo (subscriber, #20427)
Posted Nov 14, 2010 6:10 UTC (Sun) by bronson (subscriber, #4806)
Seems a rather weak reason to hate a browser.
Posted Nov 15, 2010 16:24 UTC (Mon) by wookey (subscriber, #5501)
Ctrl-U can still be made to work (as 'clear line/box'), but it gets harder to find the rune every year. A button to prod for the same function would indeed be a useful alternative.
Like many here I find middle-button paste to be one of the finest things about GNU/Linux, and it's extremely tiresome when you get apps that don't do it right. I really hope it does not get sacrificed as part of the GUI re-architecting that it looks like we are headed for.
I use remote-X-over-ssh for graphical apps fairly regularly and it's extremely useful, but accept the argument that we can achieve much the same effect by other means (SPICE/VNC/NX/whatever). I hope that does indeed come to pass.
A similar button does exist.
Posted Nov 18, 2010 3:52 UTC (Thu) by gmatht (guest, #58961)
With Firefox, middle-click the icon to the left of the icon bar. However this does not work for searching for non-urls; see the patch to implement middle-clicking on the search icon at: https://bugzilla.mozilla.org/show_bug.cgi?id=414849. I would be particularly interested to know if you would find the functionality implemented by this patch useful.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds