Slashdot Mirror


Dealing with the Unix Copy and Paste Paradigm?

MolecularBear asks: "I grew up on Windows machines, using the ol' ctrl-c to copy and ctrl-v to paste. For the past few years I've been a hardcore Linux user, running it almost exclusively at home and at work. As I am sure you are all aware, highlighting text in Linux automatically performs a copy while the middle mouse button performs a paste. The Ctrl-c, Ctrl-v standard works in many applications, but not all. Lately I have begun to find the automatic highlight-copy to be annoying. As in, I'll highlight text to copy it, then realize I want to highlight a block of text for the purpose of deleting it. Of course, the second highlighting overwrites the first highlighting. I am curious about how other people accomplish their copy/paste needs. Any special setups, applications, or words of wisdom?"

183 of 1,125 comments (clear)

  1. Common problem.. by SeanTobin · · Score: 5, Insightful

    ..but I don't have a solution either :)

    What annoys me the most is when copying/pasteing URL's. I'll highlight&copy a url somewhere then I go and paste it into firefox. Out of habbit I'll go and highlight the current URL and control+v what I assume I'm pasteing... and end up with the same URL that I started with.

    Whats more interesting is that sometimes what control+v pastes is different from what the middle-click pastes. I'm sure there is a reason, and I'm also sure its my fault for not knowing it... but its still annoying..

    What I've come to do is to copy a link via control+c or highlighting then opening a new tab in firefox. I have firefox to open new tabs to blank URL's and then I just middle click or control+v the URL.

    Its a partial and flawed solution to a small part of your problem. Of course, this is Slashdot ;)

    --
    Karma: SELECT `karma` FROM `users` WHERE `userid`=138474;
    1. Re:Common problem.. by GigsVT · · Score: 5, Informative

      Whats more interesting is that sometimes what control+v pastes is different from what the middle-click pastes.

      Yeah, there's basically two clipboards. The one when you just highlight something, and the one where you click "copy" in the menu.

      The confusion comes when bugs in some programs confuse the two (or only implement one of them .. cough xchat cough). It's extremely hard to convince egotistical programmers that their clipboard behaviour is actually wrong and confusing to users.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:Common problem.. by Coneasfast · · Score: 4, Insightful

      i think the problem is many toolkits/programs combine the primary/secondary 'clipboard' buffer.

      IIRC, what should happen is the primary selection (ctrl-c/ctrl-v) should be seperate from secondary selection (select text, then middle click)

      --
      Marge, get me your address book, 4 beers, and my conversation hat.
    3. Re:Common problem.. by nachoman · · Score: 3, Informative

      The difference between the select/middle-click paste and the Control-C/Control-V paste is because they each use different Clipboards. For instance if you are using KDE, The Control-C will copy to the KDE clipboard and the select with mouse will copy to the X-Windows clipboard.

      I think the reason for the two different Clipboards is because the KDE (Or gnome? Not sure if it works the same way) clipboard handles copying content other than plain text and the X-Windows one not.

    4. Re:Common problem.. by Klerck · · Score: 2, Informative

      You can press ctrl+l in firefox and it will take you to the address bar while simultaneously highlighting it. Since you didn't manually highlight it, it doesn't copy into the paste buffer, and you're free to paste the other URL you had in the buffer into the address bar.

    5. Re:Common problem.. by Apro+im · · Score: 2, Informative

      In GNOME, at least, i think there's a separate clipboard that's for Ctrl+C and Ctrl+V, so if you use those two, you can use normal windows-styl C&P

    6. Re:Common problem.. by ArmpitMan · · Score: 5, Insightful
      Does anyone else find the phrase "I'm sure there is a reason, and I'm also sure it's my fault for not knowing it" with respect to basic, everyday user interface tasks troubling?

      Because you really should.

    7. Re:Common problem.. by forevermore · · Score: 4, Informative

      Don't forget that shift-insert is almost always used to paste the X clipboard (as opposed to the ctrl-c/ctrl-v one managed by the desktop environment). But then some programs (gecko browsers being the most annoying for me) go and alias this to the functionality of ctrl-v, so I have no keyboard equivalent for middle-click paste.

      --
      Do you really need reason for beer? Wingman Brewers
    8. Re:Common problem.. by RossyB · · Score: 4, Informative

      Urr, all wrong.

      Control-C/V will copy/paste the CLIPBOARD selection. Highlight/middle click will copy/paste the PRIMARY selection. No real applications use the SECONDAY selection, but it still exists.

      There is no difference between any of these clipboards, GNOME and KDE don't have their own clipboards (though KDE does have a daemon to collect copied data so that it persists after the application closes), and all X clipboards can handle any content type: it's the applications which don't support it.

      http://freedesktop.org/Standards/ClipboardsWiki is an excellent summary of the X clipboard.

    9. Re:Common problem.. by Bryan_W · · Score: 2, Funny

      What have YOU been doing to have that on your clipboard?

    10. Re:Common problem.. by psoriac · · Score: 2, Informative

      This annoyed the hell out of me too, until I realized that ctrl-L will highlight the current url *without* overwriting your other highlighted text. Then hit delete or backspace to clear the url bar, and middle-click to paste in the new url.

      At least, Mozilla on FreeBSD in X with WindowMaker does this. I can't claim it works on any other combo, which in itself is a discussion for another day.

      --
      I browse Slashdot at +3, Funny
    11. Re:Common problem.. by irix · · Score: 5, Informative

      Yeah, there's basically two clipboards.

      Yup. The best explanation I know of how this works from someone who would know :)

      --

      Do you even know anything about perl? -- AC Replying to Tom Christiansen post.
    12. Re:Common problem.. by DeadInSpace · · Score: 3, Informative
      I think the reason for the two different Clipboards is because the KDE (Or gnome? Not sure if it works the same way) clipboard handles copying content other than plain text and the X-Windows one not.
      Wrong. X' selections mechanism (which is a general data sharing mechanism that's also used for copy/paste) supports any kind of data, not just text. It's the widgetsets and/or applications that don't understand anything other than text. Luckily, this is improving as GTK and QT are working on this.

      From the ICCCM, section 2.6.2 (referring to data transferred through selections):
      The atom that a requestor supplies as the target of a ConvertSelection request determines the form of the data supplied. The set of such atoms is extensible, but a generally accepted base set of target atoms is needed. As a starting point for this, the following table contains those that have been suggested so far.
      From a document explaining X selections:
      One of the really cool, yet rarely used, features of the selection mechanism is that it can negotiate what data formats to use. It's not just about text. When one application asks another for the selection, part of their communication involves the requester asking the owner for the list of types in which they are capable of delivering the selection data; then the requester picks the format they like best, and asks for it that way.
      By the way, "X-Windows" doesn't exist, it's the "X Window System", or "X" for short.
    13. Re:Common problem.. by Hatta · · Score: 2, Insightful

      Come on. Everything is learned. Forget who said it, but "The only intuitive user interface is the nipple." If you had your way, the only way to use anything would be to suck on it, and that doesn't give you much granularity of control. Hell, even the human-human interface isn't entirely intuitive. Language, surprise, is learned.

      --
      Give me Classic Slashdot or give me death!
    14. Re:Common problem.. by ArmpitMan · · Score: 2, Insightful
      Not quite -- imagine, if you will, if I rolled out of the lot with a hybrid manual/automatic car. The smarmy used car salesmen is smiling and waving as he says to me, "You don't want to worry about shifting gears? Just don't touch the clutch. No problem!"

      The user, slightly wary, but trusting, cruises along in his slightly strange car. A song comes up on the radio that the user has a particularly passionate hatred for, so he fiddles with the dial to find a new station.

      Suddely, the engine sputters out and stalls. The hapless user manages to make it to the side of the road before the car dies completely. Irate, he calls the dealer on his celphone. "Oh, were you listening to 98.3FM?", he says. "Yeah, that station doesn't support the automatic transmission; you have to switch to manual if you want to listen to it. Don't worry! You'll get used to it."

      The problem? Because the scheme is so complicated, and because it got changed several times over the lifetime of X, developers haven't always properly supported it. And so, with some programs, Ctrl-C/Ctrl-V simply doesn't work. And then what does old Aunt Grandma User get told by her well-meaning Unix-expert grandnephewson? "Oh, that program works a little differently -- here, let me show you how to do it." She gets confused, forgets which program to use which technique in, tries to paste in a URL with the middle mouse button and all hell breaks loose. "This UNIX stuff is like reading Greek backwards while underwater!" she exclaims. And a little piece of Linux on the desktop dies.

      Turn the middle-click off by default. Let the power-users enable it explicitly if they want it.

    15. Re:Common problem.. by Ed209 · · Score: 2, Insightful

      Try Control-Insert for copy. Cut is supposed to be Shift-Delete (it works in Windows). These are what I learned originally for cut/copy/paste, don't know where from, somewhere in the dos world. Ctrl-c/v/x are still uncomfortable for me. Shift-delete works in Mandrake under KDE, though I don't know if its X, KDE, or the application (Mozilla) that is providing the functionality.

      --
      If at first you dont succeed, relax, success is overrated anyway.
  2. Pasting urls by grahamsz · · Score: 5, Informative

    I usually find you can just pick up the url by selecting it, then middle button drop it into the browser. That seems to work on konq, netscape, mozilla and firefox on both linux and solaris.

    But i do feel your pain :)

    Firefox and Konqueror should have a button for "Open the clipboard in a new tab".

    1. Re:Pasting urls by divirg · · Score: 3, Informative

      There's a plugin for Firefox that puts a button next to the URL field to clear it when you're about to paste. Don't remember what it's called - check the Firefox plugins page on mozilla.org.

      Doesn't help the general problem though...

    2. Re:Pasting urls by Martin+Blank · · Score: 5, Informative

      Firefox and Konqueror should have a button for "Open the clipboard in a new tab".

      Agreed. While not a perfect solution, Clipboard Observer may be a possible way of dealing with this. It can get really intrusive, though, because it can end up opening tabs when you're copying a link to paste somewhere else, like in e-mail or IM. Worth a try, though.

      On an unrelated note, the same author also has Tabbrowser Extensions, basically some really, really, REALLY useful alterations to how Mozilla and Firefox handle tabs. With it, you can do things that should (IMHO) be in the codebase, like re-ordering tabs, moving tabs in groups, moving tabs between windows, opening duplicate tabs (complete with the tab's page history), and (my favorite) undoing the closing of a tab. I've been saved on a number of occasions by this last feature. Very handy. The author should be getting more recognition.

      --
      You can never go home again... but I guess you can shop there.
    3. Re:Pasting urls by AppyPappy · · Score: 5, Funny

      Using a mouse in unix? That's heresy.

      --

      If you aren't part of the solution, there is good money to be made prolonging the problem

    4. Re:Pasting urls by connsmythe96 · · Score: 4, Informative

      Firefox and Konqueror should have a button for "Open the clipboard in a new tab".

      Try middle-clicking in the main view area of mozilla/firefox with a URL in the clipboard... ;)

      --
      if(!cool) exit(-1);
    5. Re:Pasting urls by taniwha · · Score: 4, Informative

      Konq at least attempts to solve this by having a delete button next to the URL - clicking that black thing with an X on it while 'holding' text from a hilite clears the URL so you can drop a new one in there

    6. Re:Pasting urls by divirg · · Score: 5, Informative

      No, I'm thinking of Diggler.

      "Diggler is a small but powerful add-on for Mozilla, Netscape and Firefox. It adds a button next to the location bar which can clear the location bar..."

      Similar, but without the keystrokes.

    7. Re:Pasting urls by orasio · · Score: 3, Interesting

      Firefox and Konqueror should have a button for "Open the clipboard in a new tab".

      Ctrl-T (new tab)
      Middle click on the location bar (paste url)
      Enter

      Also, Ctrl-U clears the location bar.

    8. Re:Pasting urls by GMC-jimmy · · Score: 3, Informative

      X Windows, like bash, has it's own way of copy/paste (ie: highlight/middle-click) and KDE/GNOME have their own way of copy/paste (ie: ctrl+c/ctrl+v). What that means is while you're running X with a popular desktop suite like KDE or GNOME, you have more than one clipboard. As you propbably wouldn't use multiple text editors to simultaneously edit the same file, you shouldn't try to use multiple clipboard copy&paste functions for the same task.

      --
      __________________________________
      Free your mind - Flush your toilet
    9. Re:Pasting urls by ronlusk · · Score: 4, Informative
      I've created a script for working with KDE's klipper clipboard tool.
      # point at the browser
      $FIREFOX=/opt/mozilla/firefox/firefox
      ($FIREFOX -remote "ping()" && \
      $FIREFOX -remote "openUrl($1,new-tab)") || \
      $FIREFOX $1 &
      I'm not sure I have everything the best it can be. But when I select a URL somewhere, klipper pops up a menu offering to open it in Konqueror, Mozilla, or Firefox (among other things). I have configured klipper so pressing "F" is a shortcut for opening in Firefox, where it opens it in a new tab.
    10. Re:Pasting urls by pantherace · · Score: 4, Interesting
      Yes, there is a similar thing in KDE called klipper (been there since kde-2.0) which handles text much better. It's a tray applet which uses a stack to handle text selections.

      Honestly, I never use a clipboard to copy anything other than text. If I must use a mouse to copy something, I will drag & drop it, not select, copy, select insert point, paste. Honestly, I don't get the whole copy/paste using the Windows style. X's highlight/copy & middle click paste is so much more useful, when used with klipper (or presumably gcm), which eliminates the one weakness of it, and actually makes it better (multiple item storage).

      People should try to adapt. Middle click in any browser with a url (at least among konqueror, mozilla & derivatives, opera & everything I can recall using except links.) & it opens it, no need to go to a location bar. Or drag the url & drop it on a browser window.

      So many ways to do it, but people will whine that 'the one way' doesn't work. It makes me wonder if there is an intuitive interface for a computer AT ALL. (And, NO, Mac Zealots, the Mac doesn't qualify!) Current GUIs aren't, CLIs don't seem to be, & voice commands are unlikely to be in my opinion.

    11. Re:Pasting urls by AntiOrganic · · Score: 3, Informative
      On an unrelated note, the same author also has Tabbrowser Extensions [sakura.ne.jp], basically some really, really, REALLY useful alterations to how Mozilla and Firefox handle tabs. With it, you can do things that should (IMHO) be in the codebase, like re-ordering tabs, moving tabs in groups, moving tabs between windows, opening duplicate tabs (complete with the tab's page history), and (my favorite) undoing the closing of a tab. I've been saved on a number of occasions by this last feature. Very handy. The author should be getting more recognition.


      Unfortunately, it's so bug-ridden and terrible that Firefox developers won't accept bug reports from people who have it installed.
    12. Re:Pasting urls by fishbot · · Score: 2, Informative

      Not quite. There are windowmanagers out there designed to be exclusively used with the keyboard (ratpoison for one, evilwm for another). X itself is input device agnostic. The window managers assume to much.

    13. Re:Pasting urls by Martin+Blank · · Score: 3, Interesting

      I went looking for something to back up your statement, but I couldn't find it. Perhaps you could point me to something about this?

      And isn't the normal response to any installation with extensions installed to advise removing the extensions first and seeing if the problem lies with the extension code, thereby moving the onus of fixing the problem to the extension developer?

      --
      You can never go home again... but I guess you can shop there.
    14. Re:Pasting urls by GMC-jimmy · · Score: 5, Insightful
      Which is simply a broken system. It's one of the things that definitely needs to be fixed before you can tryly say that Linux is ready for prime time.

      That depends on who you ask. I personally like and use both ways. Each can do things the other can not. For example X Windows method of copy/paste can work across different terminal sessions whereas KDE/GNOME's can not. On the other hand, KDE/GNOME's clipboard keeps a history whereas X or even bash does not. So depending on the environment you are in and the work you're doing. Both can be very useful at different times and for different needs. To think of both methods as one system is incorrect, they are most definitely two seperate systems. Being aware of that and making a decision on which to use will save you the frustration usually accompanied by confusing the two as a single system.
      --
      __________________________________
      Free your mind - Flush your toilet
    15. Re:Pasting urls by Lussarn · · Score: 2, Insightful

      As it is you can pretty much ignore the one of them you don't like. If you run Gnome or kde booth ways works pretty well.

      Or you can see the X way as the "Quick'n dirty" copy and paste and the Gnome/KDE as the more solid.

    16. Re:Pasting urls by BinLadenMyHero · · Score: 2, Informative

      I prefer Digger.

      Also note that you can, within Firefox, drag a link or a selected URL text to the tab bar to open it. If you drag to an existing tab it will replace that tab, and on an empty area (or the X button, if the bar is full) of the tab bar it will open a new tab.

    17. Re:Pasting urls by lerouxt · · Score: 5, Informative

      In KDE you can configure Klipper to either "Synchronize contents of the clipboard and the selection" or "Separate clipboard and selection".

      Your choice.

    18. Re:Pasting urls by jargoone · · Score: 3, Funny

      The author should be getting more recognition.

      Yeah, he should. Funny that you don't mention his name though, isn't it?

    19. Re:Pasting urls by Watts+Martin · · Score: 2, Informative

      I admit it's been a while since I used X regularly, but as I recall, you often didn't have a choice of which system to use -- many programs only responded to one or the other. This is what can be irksome. I distinctly remember some combination I had when I was running under XFce where I couldn't move a URL from the terminal window to Mozilla, period. Each of them knew about their own clipboard style, and that was it.

      I admit I'm not sure what you mean when you say that the X windows system can "work across different terminal sessions whereas KDE/GNOME's cannot." If you simply had one unified clipboard, wouldn't this still be the case (if it was done correctly?) That's the way it works in OS X. This sounds like a problem with KDE/GNOME's implementation, unless I'm misunderstanding you.

    20. Re:Pasting urls by Anonymous Coward · · Score: 5, Informative

      Option "AllowMouseOpenFail" "true" in your XF86Config. This is on by default on all linux distributions I've used recently, actually, so I'd be interested to know what distro you were using so it can be corrected.

    21. Re:Pasting urls by Wyzard · · Score: 2, Informative

      You can paste between terminal sessions using GNOME's clipboard mechanism -- you just have to use different hotkeys (in gnome-terminal it's ctrl-shift-C to copy) since the usual ones need to be passed through to the shell (ctrl-C to abort a job, for example).

    22. Re:Pasting urls by phoenix.bam! · · Score: 4, Informative

      You don't need mouse gestures, all you need to do is highlight a URL, and paste it into the MAIN WINDOW of the FireFox browser, NOT THE URL BAR, and it will load that website.

    23. Re:Pasting urls by shaitand · · Score: 2, Insightful

      Or put the cursor anywhere in the location bar and press CTRL+U. This nukes the line in the bar (in mozilla/firebird on *nix).

      Quite handy for broken text links on slashdot since it gives you the chance to correct them before trying to load the page.

    24. Re:Pasting urls by swillden · · Score: 3, Insightful

      The broken part is that they are two systems.

      I have two different systems for heating food in my kitchen. Is that broken? No, and neither is X cut-n-paste, for the same reason. The two different systems are separate, distinguishable and serve different purposes.

      The only brokenness is the number of old apps that don't use the selection and clipboard correctly. If you stick to well-written applications you really don't even need to know about the selection/clipboard duality. But you'll be more effective if you do understand and exploit it.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    25. Re:Pasting urls by crossconnects · · Score: 2, Informative

      Easy.

      redirect the output to a file.

      switch to the other terminal

      read back from the file. use grep if necessary.

      --
      no big sig
    26. Re:Pasting urls by vikool · · Score: 2, Informative
    27. Re:Pasting urls by Fancia · · Score: 3, Informative

      But it also offers a "Light" mode with only the more commonly-used features turned on, which makes it much faster and less buggy.

      --

      Bít, zabít, jen proto, ze su liska!
    28. Re:Pasting urls by swillden · · Score: 2, Insightful

      No, the brokeness is working in an unfamiliar manner compared with EVERY other graphical system in existance without ANY actual gain.

      But it does work exactly the way it does in every other GUI. Ctrl-C copies, Ctrl-X cuts, Ctrl-V pastes.

      In addition, *if* you choose to use it, there's another mode of operation that allows you to accomplish most of the same tasks with fewer keystrokes.

      The gain is that I can copy and paste without touching the keyboard or pulling down menu options. The cost, for those who don't want to use this feature is... NOTHING! (excepting in poorly implemented -- and mostly old --- X apps).

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    29. Re:Pasting urls by jargoone · · Score: 2, Informative

      I don't know if you're being a smart ass, but I'll assume you're not so I actually help you if that's the case. I wasn't just being pedantic when I said bash itself doesn't have copy and paste. It's a combination of the window manager and the terminal program.

      It just so happens that most Linux distributions that I've seen come with a console-mode copy and paste program called "gpm". Look at the output of "ps" and see if it's running. If not, start it. Once it's running, switch to a virtual console and move your mouse and you should see a cursor floating around.

    30. Re:Pasting urls by donscarletti · · Score: 2, Insightful
      No, X itself has multiple clipboards.

      One of them is automatically invoked when the middle mouse button is used or text is selected, another has to be manually invoked (in KDE and Gnome with ctrl+c/ctrl+v)

      --
      When Argumentum ad Hominem falls short, try Argumentum ad Matrem
    31. Re:Pasting urls by Bitsy+Boffin · · Score: 3, Interesting

      I *HATE* that so-called feature. For the simple reason that when I am doing data entry into a web form, as I often do by copying data from some other application/legacy wehsite, I want to be using left-select-middle-click-paste for the extra speed.

      But, especially if I'm entering lots of data, I'll occasionally miss the input field when I middle click, then, even though what I have pasted looks *nothing* like a URL, firefox will in it's infinite wisdom try to load something, anything, it's not even sensible about it, I get odd pages I havn't been to in months, strange things completely out of the blue. And if I don't hit escape quick enough it'll load the 'supposed' page I wanted and then when I hit back, all the data I entered into my form is gone (because it came from an expired form post and had to be reposted to the server to generate the form again).

      ARGH! I *HATE* THAT "FEATURE".

      --
      NZ Electronics Enthusiasts: Check out my Trade Me Listings
    32. Re:Pasting urls by ader · · Score: 2, Informative

      On Mozilla, Multizilla provides a similar button next to the URL bar. (Plug: it's a great extension, almost like having a new browser.)

      Ade_
      /

      --
      Big Bubbles (no troubles) - what sucks, who sucks and you suck
    33. Re:Pasting urls by gowen · · Score: 2, Informative

      Me too. Fortunately, you can turn it off.

      Go to about:config and set the value of middlemouse.contentLoadURL to false

      I felt a whole lot better afterwards.

      --
      Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  3. Your proiblem... by nother_nix_hacker · · Score: 4, Insightful

    ...is the lack of a standard toolkit. Keep an eye on X.org. I only really work in terminal appart from web browsing. When I copy a url from a term I have to remember to have left the URL bar in firefox bare. Otherwise I end up selecting it to delete the text in there.... you see whats happening anyway :)

    1. Re:Your proiblem... by Psiren · · Score: 3, Informative

      You can just click the middle button anywhere on the page. It'll do a paste of the buffer and load the url in it. You don't have to paste it into the url bar. Once you've done it a few times it makes life a lot easier. It's a far larger target to paste into. Just be careful not to click when you're hovering over a link.

  4. Minor solution - Ctrl-K by jmdjmd · · Score: 5, Informative

    Just a small shortcut - Ctrl-K will (should!) erase the rest of the line, no need for highlighting it. Works wonders for clearing the URL bar :-).

    1. Re:Minor solution - Ctrl-K by Xzzy · · Score: 3, Informative

      control-u blasts all of it. I know I've seen this convention somewhere I just can't place it. ;)

      Many of the bash control sequences do the same thing in web browsers. In most text editing situations, really.

  5. I wish! by NerveGas · · Score: 2, Insightful

    highlighting text in Linux automatically performs a copy while the middle mouse button performs a paste

    I wish. That's the behavior that I prefer. In the past half-year, I've tried about four different distributions, and none of them have had that as the default behavior. It seems like they're intentionally trying to become like Windows.

    steve

    --
    Oh, you're not stuck, you're just unable to let go of the onion rings.
    1. Re:I wish! by riffraff · · Score: 4, Insightful
      Exactly. That's why I stopped using galeon for my browser, and went back to mozilla. I like the 'standard' emacs keyboard bindings, but the programmers of galeon decided that the windows key bindings were much better (or less confusing to new linux users, whatever) than the previous behavior. The problem is that the new users have no problem using, but now the rest of us have to remember two different bindings, depending on which application we use.


      Linux is not Windows. Stop trying to make it as such.

    2. Re:I wish! by radish · · Score: 2, Insightful

      But there needs to be a standard. It seems pretty arbitrary to decide that a web browser should behave like Emacs (for example).

      --

      ---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"

  6. This is a usability problem... by Anonymous Coward · · Score: 5, Interesting

    Whew, glad to see I'm not the only one .. the whole "click middle button to
    paste" thing drives me NUTS.

    I started computer life as a Mac user. I think one button is the simplest and
    most elegant way to design a mouse. I think mod-C and mod-V is the easiest way
    to cut & paste (one hand on keyboard, one on mouse). I also have big hands and
    fumbling fingers. I very often paste garbage into Mutt or other programs (for
    instance, extremely critical SSH sessions to production machines) in my
    Konsole windows. Hold breath, wait 2 seconds for the beeping to stop, paste
    text into another window and try to figure out if I just emailed porn to the
    client or sent /boot/kernel-2.4.25 to the printer.

    I even whipped out the soldering iron and replaced the Omron tactile switches
    in my trackball with the stiffest they had a digikey. It did help a little.

    And I also have dealt with the slight confusion that results after I highlight
    something, whip over to another window, and realize that I have to select
    everything to delete it first, which trashes the selection. Thankfully,
    Control-C/V works in the programs that I usually do this with.

    I bet most people don't even realize that X11 actually has more than one
    "clipboard". Did you? There is nothing in the interface that suggests I should
    have a mental model of multiple selection areas. Only after learning about
    Vim's keystrokes for accessing the various buffers did I realize what was
    going on.

    I just wish I could permanently and completely switch off this "feature" of
    X11, in all programs. I'm not stupid, I've been using X11 nearly daily since
    1990, and I've been screwing it up since then. Apparently just bringing this
    up in public is enough to condemn a person to flames, but there it is.

    Dear X11: please join the rest of the world and shed at least one of those
    buttons. Get rid of multiple clipboards or whatever you call them. I don't
    need it. My grandmother doesn't need it. Maybe some geeks have trained
    themselves to need it, let them figure out how to turn it back on.

    And while we're on the subject can we please standardize Control-C vs. ALT-C,
    etc.???

    (And yes I wrote this in a terminal and selected/pasted it with the button.. because Control-C doesn't work in the terminal!)

    1. Re:This is a usability problem... by ViolentGreen · · Score: 2, Insightful

      And while we're on the subject can we please standardize Control-C vs. ALT-C, etc.???

      That is my biggest issue with the linux/open source world. Not that in particular, but the lack of standardization. The lack of standardization of shortcut keys, graphical interface design and general look-and-feel of the interface.

      For me, usability is much more important then functionality. I wouldn't run a server on anything else but a little more maturity is needed to get me to use linux as a home system.

      --
      Not everything is analogous to cars. Car analogies rarely work.
    2. Re:This is a usability problem... by Suidae · · Score: 3, Interesting

      I think mod-C and mod-V is the easiest way
      to cut & paste


      You obviously don't use a dvorak keyboard.

      ctrl+j and ctrl+k :)

    3. Re:This is a usability problem... by FauxPasIII · · Score: 4, Insightful

      Before the influx of Windowsisms caused by the attempts of Gnome/KDE to attract converts from Windows and Mac, there was a single standard that worked everywhere; highlight, middle click. The only app that I remember ever having trouble with it was Netscape 4, but that program had a whole host of problems besides UI issues. =)

      The confusion arises when Mac/Windows people arrive and want to bring their habits with them. This is completely natural. However, there has been and will continue to be strong resistance (I'll lead it myself if needs be ;) to abandoning those of us who think that highlight, middle click is vastly superior.

      I think a more reasonable solution might have been to just stick with highlight, middle click as a single, consistant standard and just teach it to newcomers. At least you'd dodge the apparent confusion that comes from partial, but not universal support of their familiar method. Better, but more labor-intensive (the true capital of the open source world) would be to have selectable behavior by a global X-server level (or perhaps window manager level) toggle.

      All that said, the idea of having to use both keyboard and mouse for such a fundamental operation is just so horrifyingly backwards and wrong, and it amazes me that anyone who's experienced X11 could possibly go back to such an arcane and user-hostile configuration. ;-)</troll>

      --
      25% Funny, 25% Insightful, 25% Informative, 25% Troll
    4. Re:This is a usability problem... by pavon · · Score: 4, Insightful

      Some historical information about why copy and paste is the way it is.

      And yes I wrote this in a terminal and selected/pasted it with the button.. because Control-C doesn't work in the terminal!

      For the terminal at least, there is a good reason for this. You are basically running a console program inside a window, and this console application has it's own meaning for control keys. For example ^C sends SIG-INT to the current program. In pico ^C is shows the current line number. Emacs would be unusable without ^c and ^x. So the terminal emulator interpreted ^c and ^v as copy and paste, instead of passing them onto program running in the terminal, then all of these commands for all of these programs would stop working. Some people have suggested intercepting ctrl-c and ctrl-v for copy and paste and then having buttons you can click to actually send the command. I have tried this and found it to be much worse than the original problem.

      Because the terminal was the first application to run in X, the designers wanted a way to copy and paste that didn't conflict with these existing keyboard shortcuts. However, any existing keyboard shortcut could concievably already be used by an existing console program. Since the mouse was the only new input for X they came up with the mouse-only copy and paste that we have now.

      There really isn't any way to make the ctrl-C, ctrl-V method of copy and paste compatible with terminal applications. It just isn't possible. However there are other ways of doing copy and paste that are compatable with the terminal, by adding additional keys to the keyboard. For example, OS X uses the cmd key for all shortcuts, which doesn't interfere with ctrl shortcuts in the terminal. Some UNIXes have had dedicated copy and paste buttons on the keyboard.

      However, seeing as how there would be great revolting if gnome or kde tried to get rid of ctrl-c, ctrl-v and replace them with alt-c,alt-v that it will never happen. The terminal emulator will just have to remain an oddity in these desktops.

    5. Re:This is a usability problem... by Rysc · · Score: 4, Funny

      "Why is "V" Paste, anyway?"

      That's easy.

      Needing a Copy key, C was selected. Because C stands for Copy. Needing a Cut key, X was selected. Because X is a convenient mnemonic for 'cut'. Needing a Paste key, V was selected. Because V stands for "It's next to the Copy key, dumbass."

      No charge.

      --
      I want my Cowboyneal
    6. Re:This is a usability problem... by zsau · · Score: 5, Insightful

      Yeah... I hate when I go to Windows and try to paste something only to discover it hasn't been copied. It's just what you're used to!

      --
      Look out!
    7. Re:This is a usability problem... by harborpirate · · Score: 2, Insightful

      Alright, I'll bite... I'm gonna head under the bridge and talk to the troll...

      Ok, so I disagree with most of what you said, and I think that if the developers of Linux (or in this case, X) ever want it to become a serious player in the desktop market they need to consider "when Mac/Windows people arrive and want to bring their habits with them". And yes, I used CTRL-C, CTRL-V to paste that.

      But the thing that really bugs me is this:

      "All that said, the idea of having to use both keyboard and mouse for such a fundamental operation is just so horrifyingly backwards and wrong, and it amazes me that anyone who's experienced X11 could possibly go back to such an arcane and user-hostile configuration. ;-)"

      Because, in windows, you don't HAVE to use the keyboard and mouse to copy n' paste. You can simply highlight, right click, choose copy, right click in another location, choose paste. The keyboard need never be involved. I usually use CTRL-C and CTRL-V because its faster and it works universally (some lame applications choose not to implement the right click menu standard - I shun those apps whenever possible).

      Am I saying X needs to implement CTRL-C and CTRL-V? No. What I am saying is that many people don't understand why highlighting something would copy it. Take a minute to think about that. Shouldn't you have to take some sort of action to copy something? How hard would it be to allow the user to choose a "Middle click required to copy text" checkbox? Problem solved. Yes, it requires one extra click, but some of us would like to be able to choose that as an option. I don't care if the zealots keep their old wrong-headed copy scheme. I don't even care if its the default. But for Linux to really take hold, it needs to adopt functionality that will allow users coming from other UI worlds to function in a reasonably similar environment instead of having to adopt all sorts of strange new conventions.

      --
      // harborpirate
      // Slashbots off the starboard bow!
    8. Re:This is a usability problem... by jonasj · · Score: 2, Insightful

      Considering that the OP was an old Windows user, it's interesting that we see people complaining about Ctrl+C and Ctrl+V not working in a terminal, because in a Windows 2000 "terminal" (cmd.exe), you paste by right-clicking, and copy by selecting followed by right-clicking. Ctrl+C and Ctrl+V is sent to the application running in the terminal, as in Unix.

      --
      You know, Microsoft's street address also says a lot about their mentality.
    9. Re:This is a usability problem... by Yunzil · · Score: 2, Insightful

      I think one button is the simplest and
      most elegant way to design a mouse.


      Maybe, but "simple and elegant" is not the same as "useful". :)

    10. Re:This is a usability problem... by lahvak · · Score: 3, Insightful

      The parent said:

      "What I am saying is that many people don't understand why highlighting something would copy it. Take a minute to think about that. Shouldn't you have to take some sort of action to copy something?"

      I see the X-window way of copying as much more natural. If you highlight something, you don't copy it. You just mark it for some sort of action. Then you either press a key and delete it, or press another key and change it to uppercase, or middle click somewhere and insert a copy of the marked text. You don't actually copy anything until you middle click.

      I was always confused by the windows terminology: first you "copy" something, and then you still have to "paste" it? When you "copy" it, where is the copy? I don't see it. Clipboard? What's a clipboard?

      There is no reason to use a clipboard for such a simple operation as copying a piece of text. Of course, sometimes you run into a situation where you highlight something for copying, then you realize you want to erase something first. That's when you use a clipboard, to temporarily hold a copy of your text while you highlight something else.

      The author of the original article could just as way complain about something like this:

      "When I select a text to make it bold, and then decide I need to erase something first, I loose the original selection as I select the text to be erased."

      The parent also said:

      "But for Linux to really take hold, it needs to adopt functionality that will allow users coming from other UI worlds to function in a reasonably similar environment instead of having to adopt all sorts of strange new conventions."

      I cannot believe I cannot use my whip to make my car go faster. Instead, I need to step on some sort of pedal. For cars to really take hold, they needs to adopt functionality that will allow people used to riding horses to function in a reasonably similar environment instead of having to adopt all sorts of strange new conventions.

      Of course the real problem is that many new gui applications break the standards and mess up the whole x-window way of copying, mixing up primary selection and clipboard.

      --
      AccountKiller
  7. What middle button? by Wesley+Felter · · Score: 4, Insightful

    Lately I have begun to find the automatic highlight-copy to be annoying. As in, I'll highlight text to copy it, then realize I want to highlight a block of text for the purpose of deleting it. Of course, the second highlighting overwrites the first highlighting. I am curious about how other people accomplish their copy/paste needs.

    I used to run into the same problem, but you already know the solution: use ctrl-c and ctrl-v. If an application doesn't support them, scrap it. Just ignore your middle mouse button -- pretend it isn't there -- and you won't have this problem.

    1. Re:What middle button? by GigsVT · · Score: 2, Informative

      If highlight clobbers something you copied with ctrl-c, then it's a bug in the program.

      There are two clipboards, and highlighting should never clobber something you manually copied.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:What middle button? by roca · · Score: 4, Informative

      Only if your application sucks. freedesktop.org spells out how this should work; ctrl-c/ctrl-v manage the CLIPBOARD selection, and mouse selection manages the PRIMARY selection. Selecting text with the mouse should NOT interfere with ctrl-c ctrl-v operations in ANY way.

      http://freedesktop.org/Standards/clipboards-spec /c lipboards.txt

    3. Re:What middle button? by Brandybuck · · Score: 2, Funny

      Just ignore your middle mouse button

      Oooh! Just like Windows!

      --
      Don't blame me, I didn't vote for either of them!
  8. Middle button? by 1000101 · · Score: 5, Funny

    "... performs a copy while the middle mouse button performs a paste."

    I use a Mac you insensitive clod!

    1. Re:Middle button? by ChipMonk · · Score: 2, Funny

      So a Mac user can only paste?

    2. Re:Middle button? by zelurxunil · · Score: 3, Funny
      I use a Mac you insensitive clod!

      My mac runs yellow dog linux with a three-button usb mouse, you insensitive clod!
      --

      What's another word for Thesaurus?
      -Steve Wright
    3. Re:Middle button? by jpetts · · Score: 4, Funny

      "... performs a copy while the middle mouse button performs a paste."

      I use a Mac you insensitive clod!

      If you only have one button, it is the middle button...

      --
      Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
    4. Re:Middle button? by SRain315 · · Score: 4, Funny

      I've always thought it odd that Mac users don't have a middle button.

      I _know_ they have a middle _finger_ because they show it to me all the time...

      ---

      (Sure, mod it flamebait. I _am_ an insensitive clod.)

      --
      --- Corporations Are A Fad.
  9. I grew up on VMS by Anonymous Coward · · Score: 2, Funny

    I keep hitting control-B to get previous commands, control-H to get to the beginning of the line, control-A to insert, control-E to get to the end of the line.

    You think YOU have problems?!?! Think about poor poor pitiful me and my basement full of VAXen next time.

  10. Oh boy by John+Starks · · Score: 3, Informative

    Soon Slashdot will be filled with the waring camps of "X is perfection" and "X is old, so it is bad."

    In this case, I find that it's merely a matter of getting used to the way the X clipboard functions. For example, delete the old text AFTER you paste the new text. It's a different way of managing your clipboard, but it's not necessary any better; for most jobs, I find it to be MORE convenient, and I start to forget to Ctrl-C when I'm in Windows.

    For more information on how X handles the clipboard/selection, see Jamie Zawinski's informative web page.

    1. Re:Oh boy by happyfrogcow · · Score: 2, Interesting

      Meh.

      Highlighting having the side-effect of copying is just unintuitive and often the wrong behavior. It's speculating that you will want to copy the highlighted text, but often times you want to delete the highlighted text without clobering your copy buffer. or maybe you might just want to highlight the text to mark your spot.

      For your example of deleting after you paste, that is a matter of bad usability. so i've got this really long URL in the location bar. i middle click and paste before the first letter of the old URL. then what, i hold down delete until all the old stuff is gone? i highlight it (and by side effect copy it) then delete it? or does a keyboard initiated highligh not copy to a buffer, probably not. But still instead of the 2 actions of "highlight and paste" i have "paste highlight delete" and might end with a clobbered copy buffer.

      c'mon... i'm lazy. why do 3 things when i can do 2?

    2. Re:Oh boy by IamTheRealMike · · Score: 3, Insightful
      Have you actually used X much? I don't really see what the fuss is about - if you don't like the way the PRIMARY (middle click) clipboard works, don't use it. The standard Windows style clipboard is still there, still works fine, and is independent of the middle-click clipboard. If that is ever not true, you are using a buggy app that should be fixed.

      Basically, this guy is complaining that things are working in the way they should, but not how he wants them. I'm not sure how to make it convenient for him without breaking other stuff. Look at it this way, he could just use the same way that works on Windows/MacOS, but he's not, then complains that it's broken. What's up with that?

    3. Re:Oh boy by grishnav · · Score: 2, Interesting
      How are you ever going to do just 2 things?

      By "things," he really means "context switches."

      Check it:

      1. Highlight URL (from IRC window/whatever)
      2. Hit ctrl+c
      3. Click in address bar of browser, which automatically highlights URL.
      4. Ctrl+v (which pastes over highlighted URL)

      Compare to:

      1. Click in address bar of browser, auto-highlight.
      2. Del
      3. Go back to other window, IRC or whatever.
      4. Highlight URL to copy it.
      5. Go back to browser, click on empty URL bar
      6. Middle-click to paste.

      So, the "X way" doesn't seem like a whole lot more work than the "windows way"?

      Scenario: I've got xterm open, chatting with friends. Somebody sends the room a URL.

      Windows way: I highlight and hit CTRL+C to copy, so fluid as to practically be one action. I pop open Moz, wipe out the URL of my home page, and paste it in.

      X way: I have to first open Mozilla and delete the URL of my homepage, whenever it comes up. Then, I have to return to my chat window, perhaps scroll (depending on how quickly the room moves - I've been in some fast ones), and find the URL. Now, I copy it, and return again to Mozilla. Because I have limited memory, this causes a delay, as Mozilla has to be swapped back in (not so much of an issue anymore, but it was at a time). Finally, I am able to paste the URL into the browser.

      With Windows, I've only had one context change (IRC Client -> Browser) rather than three (IRC Client -> Browser -> IRC Client -> Browser).

      So, basically, the "Windows Way" involves less repetitive "back and forth" actions, whereas the "X way" is pretty terrible if you hate doing things twice (a moral faux pas, according to ESR).

      Of course, this is only one particular scenario, but I hope you can see how the "X Way" isn't always the "best way."

      The "X Way" certainly has advantages in some situations. However I've found in my daily routines and my line of work that I tend to prefer the "Windows Way." You may have different habits, which would of course make it unsuitable to you. This is why I'd much love a way to configure my copy+pasting to be more Windows like, without necessarily taking away the option... (though I do prefer middle-mouse to ctrl+v).

      Of course, it would be better still of the computer simply knew what we wanted and could figure out the appropriate action to take on its own. AI majors out there listening up? Practical application! :)
    4. Re:Oh boy by zerblat · · Score: 2, Insightful
      Um, there are lots of ways to do this in an efficient way:
      • Use the same method as in Windows -- highlight text and Control-c in the first window to copy it to the clipboard and then highligt the url in the browsers localtion bar (this will copy the old url to the primery selection but leave the clipboard alone), paste with control-v.
      • Highlight the url, switch to the browser window, middle click anywhere in the browser window to go to the url.
      • Highlight url, switch to browser, press control-l (Mozilla &co) to go to the location bar, delete/backspace/control-U/control-K to delete existing url, middle click in location bar.
      • Highlight url, switch to browser, paste the new url before the old one (middle click), press control-k to delete the old one.
      • Konqueror and Firefox both have a button next to the location bar, that erases the current contents of the location bar.
      If the primary selection confuses you, just dont use it! All modern applications should support copying and pasting with the clipboard.
      --
      Please alter my pants as fashion dictates.
  11. Complain! by ChipMonk · · Score: 5, Interesting

    The best thing you can do is to complain to the developers at X.org, GNOME, and KDE (and whatever other desktop systems you know of). They need to hear this stuff, from many quarters, before they'll actually do anything about it. I think that X.org is probably the best place to start, given that development-oriented nature of the fork.

    As a slight correction, the copy-paste problem you describe isn't a Linux issue; it's an X Window System issue.

  12. -1 Redundant by stratjakt · · Score: 5, Informative

    It's always been broken.

    And any mention of a possible solution brings down the wrath of nerds who want to keep unix as unintuitive and awkward as possible.

    Besides the nuisance of what mouse click or keystroke you use to move text, it's not a clipboard like Windows uses, merely a text buffer.

    Ie; it's only good for text. You cant copy/paste (and by extension drag and drop) files, bitmaps, etc uniformly between apps.

    It's just another item in a laundry list of issues that are major to end users, but a low priority for hackers. Another speedbump on the road to Linux (unix) as a truly competitive desktop platform.

    --
    I don't need no instructions to know how to rock!!!!
    1. Re:-1 Redundant by Anonymous Coward · · Score: 2, Insightful

      Yeah. I told my mother that the other day when she ran into a problem. God damn users thinking that they should be able to use a computer without knowing how to programming. That's like driving a car without knowing how to rebuild your engine.

    2. Re:-1 Redundant by buttahead · · Score: 2, Insightful

      It's always been broken.

      that's a matter of opinion. if you hadn't gotten used to the way ms windows does it, you wouldnt be complaining. i've been using linux only for a bit under 3 years, and don't have a problem with the cut/paste situation.

      it's only good for text.

      across all desktops and all apps, this is true, although within certian environments, you can drag 'n drop, and cut/paste images and text. I can cut/paste html from mozilla browser into mozilla mail. in openoffice I can cut/paste images from one doc to another.

  13. Ctrl-v Paradigm Shift by Anonymous Coward · · Score: 2, Funny

    Actually, come to think of it...I have no idea what paradigm means.

  14. KDE klipper... by rsidd · · Score: 4, Informative
    has a menu of recently selected highlighted items. There should be a dock in the "system tray" panel item, looks like a clipboard with the "k" letter. Clicking on it has a history of recently copied (ie highlighted-with-mouse) items, you can select what you like to bring it to the top, then middle-button will paste that next time.

    Or else, first paste what you want to insert, then delete what you want to remove...

  15. Of course, no solution, but tale from trenches ... by jrl87 · · Score: 3, Funny
    I have a similar problem ... but it doesn't involve deleting ... or linux (*gasp*) ....

    When I'm on Windows I use Trillian which does this and i have a habit of highlighting as i read ... and sense i frequently copy links to send ... I am always pasting into Trillian ... unfortunately this has caused some problems with my gf when i highlight something that she doesn't need to see ....

  16. I prefer the X way, kind of... by whoisjoe · · Score: 4, Insightful

    Having used UN*X systems almost exclusively for 6 years, I have come to find Ctrl-c, Ctrl-v (or Cmd-c, Cmd-v on Macs) annoying.

    But I do know what you're talking about. I mostly run into this issue when entering text into the address bar of Mozilla. Fortunately, Mozilla uses emacs-style keybindings, so if I want to replace what's in the address bar with what's on the clipboard, I just:

    1. Focus on the address bar.
    2. Hit Ctrl-a to go to the beginning of the line.
    3. Hit Ctrl-k to kill the contents of the address bar.
    4. Click on the address bar with the middle mouse button to paste the new contents.

    I, personally, would like the best of both worlds, but that would essentially require that the system read my mind. Obviously, we're not there yet.

    1. Re:I prefer the X way, kind of... by nizo · · Score: 4, Funny
      ...but that would essentially require that the system read my mind.

      But this could lead to other problems, such as your brain causing the machine to start browsing porn sites when that pretty secretary from across the hall walks in.

    2. Re:I prefer the X way, kind of... by Covener · · Score: 2, Insightful

      For mozilla, simply middle-clicking (anywhere that isn't a link) in a page is probably a better method.

    3. Re:I prefer the X way, kind of... by gorre · · Score: 2, Informative

      But I do know what you're talking about. I mostly run into this issue when entering text into the address bar of Mozilla. Fortunately, Mozilla uses emacs-style keybindings, so if I want to replace what's in the address bar with what's on the clipboard, I just:

      Wow, stop there! That sounds way too complicated. You do know that in Mozilla (as with Mozilla Firefox) you can just middle click anywhere on the current page and the browser will go to what's in the clipboard (or search Google with "I'm feeling lucky" if it's not a URL). Simplicity :).

      --
      "Madness is something rare in individuals - but in groups, parties, peoples, ages it is the rule." -- Nietzsche
  17. no solution to a non-problem by Ender+Ryan · · Score: 2, Informative
    I don't get it, what is the problem? X has two copy/paste buffers. One is used with highlight/middle mouse button, the other is like Windows, except the keybindings are specific to the app/toolkit. Generally, all new apps use control+c and control+v, just like Windows. Sans vim, I haven't used an app that uses anything other than control+c/v in years.

    So what is the problem? Are the apps you use broken?

    --
    Sticking feathers up your butt does not make you a chicken - Tyler Durden
  18. The answer is ... jedit by vlad_petric · · Score: 2, Insightful
    Download it from here .

    What most linux aficionados don't realize is that vi and emacs are the best anti-linux vaccines. The moment you tell a non-technical person that he or she would have to use from now on the usability nightmares that vi and emacs are, you can't be sure that they not only will they run away from linux, but they'd also tell everybody to do the same.

    KDE does ctrl-c/ctrl-v in most of its apps, if jedit is too heavy for you, try kate for a change.

    Open source project very rarely have the money to do real usability apps, so I think it'd be a good idea to adopt UI elements from existing commercial designs

    --

    The Raven

    1. Re:The answer is ... jedit by jeffy210 · · Score: 2, Funny

      "The answer is ... jedit

      For a second I read "jedi"... I was like: What? Use the force to move bits now :)

      --
      ------
      "And may your days be long upon the earth."
    2. Re:The answer is ... jedit by MisanthropicProgram · · Score: 2, Insightful

      That's fine if you just want Ctrl-V and C to work like in Windows, but I think the other point is inter-app copying. I have to admit, Windows and Mac do this very well.

  19. If only Linux would get copy-paste right.. by JaredOfEuropa · · Score: 4, Interesting

    I find the highlighting of text used in Linux (or X-windows) rather hard... it tends to include too much text or not enough, and when I then click elsewhere and move the mouse just a tiny bit as I click, I highlight another letter and I lose the text I intended to copy. From a usability standpoint, the X-Windows method is horrible. My poor mom never got to grips with it (and she's gotten used to some pretty weird OS'es in the past).

    Another thing that Linux needs is a proper clipboard like Windows has. Copy anything you like: pictures, files, texts, documents. Then paste it into any application that will accept the data type. I do my day-to-day work in MS Windows, and this is one feature that I use very often, without having to think about it. Is there anything similar for Linux in the making?

    --
    If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
    1. Re:If only Linux would get copy-paste right.. by Anonymous Coward · · Score: 2, Funny

      How about this:
      copy yourself out of your mama's basement
      paste yourself into your own apartment

    2. Re:If only Linux would get copy-paste right.. by Christianfreak · · Score: 2, Informative

      X can copy content and it has multiple clipboards, the problem is that everyone has done the implementation the wrong way. (See the links folks have posted above)

      Gnome seems to be able to copy an paste files just fine, and I'm sure KDE can too. I use Blackbox and I can drag images off the web from Firefox to GIMP and they open (oddly enough if I drag from Firefox to Nautilis they save only the URL, probably a bug in Nautilus)

    3. Re:If only Linux would get copy-paste right.. by cozziewozzie · · Score: 2, Informative

      Yes, there is a solution. It's called KDE and has implemented what you wanted since KDE 3.0. If you don't like the old X way of copy/paste, then don't use it. Use a modern desktop environment, they all provide copy/paste functionality you are used to.

    4. Re:If only Linux would get copy-paste right.. by Anonymous Coward · · Score: 4, Insightful
      I find the highlighting of text used in Linux (or X-windows) rather hard... it tends to include too much text or not enough

      What are we comparing this to? Windows? Windows copy/paste is not exactly superior. Try, this for example: click once and then drag to select text. The first click will cause you to be selecting in units of single characters. Now try again, but click twice instead. Presto! You are selecting one word at a time.

      OK, what happens if you triple-click? In Internet Explorer, this selects the current block of text, kind of like a Select All. In Notepad, it does NOTHING. In Mozilla, it selects a whole line at a time, but if you drag to the previous line, it goes back to selecting in units of characters and not lines! Gaaaaaaaah!

      Is this the consistent, clean interface that X11 is supposed to want to copy? In this example at least, Windows has three different behaviors for three different apps. In X11, all the apps I can recall using operate exactly consistently. One click selects letter-at-a-time, two does word-at-a-time, and three does whole-line-at-a-time. And by the way, once you start selecting line-at-a-time, when you drag the mouse up or down, the additional selection is also done line-at-a-time.

      Furthermore, I challenge the assumption that the Macintosh style of doing things (i.e. the one Windows copied) is more intuitive. It only seems intuitive to you because you've already learned it, so it's second nature. In contrast, I started using X11 fifteen years ago, and I got used to being able to just select text and move on. Now I am using Windows and Mac on the desktop mostly, and I cannot count the number of times that I've selected some text to copy, then rearranged all my windows and iconified the one that had the text, then gone to paste it into another app. But of course, all the effort is wasted because I forget the extra step of hitting Control-C (or Apple-C). Why? Because my intuition and habit tells me that I just select the text then immediately start navigating to the place where I want to paste it. I've been using Mac and Windows on the desktop for a year now, and I still sometimes forget and have to go back to start over, remembering to hit Control-C. The point is, just the fact that transition trips you up does not mean that the one you're familiar with is better. In fact, the transition in the other direction is just as exasperating.

  20. Something the Window Manager should handle? by veranikon · · Score: 3, Interesting
    I agree with the frustration of the poster of this article. It's frequently even worse with Unix-under-Windows environments like Cygwin, Hummingbird, where you have to deal with both cut & paste schemes and the data transport between 2 clipboards. I don't favor one scheme over the other; it's just that dealing with both simulatenously is very awkward.

    A simple, high-level, question: why can't the Window Manager (Gnome, KDE, etc.) be made to handle both schemes, and allow the user to switch between them, but not let both scheme be active at once? This would of couse require support in the applications running under the WM's, but I would figure such a change in inevitable if the Linux desktop is to become more mainstream.

  21. Re:Training and repetition by Pieroxy · · Score: 4, Interesting

    The fact that copy/paste is buggy or sluggish under X-Windows has a simple reason: There are tons of SDKs for X-Windows, almost all of them using a separate clipboard implementation/mechanism.

    Saying that you deal with a technical problem by getting used to it, is saying that technology will fail to address the problem. As you say, "Linux is different" (almost true, since it has almost nothing to do with Linux, but rather with X-Windows). I would rather say:

    X-Windows clipboard management sucks. If you want to use Linux on the desktop, you'll have to get used to it.

    The lack of a decent standard allow everyone to do everything. And they do. And we are left with a huge app base for X, with very high UI fragmentation. Hence, what you learn to do with one app is different with another one.

    Annoying, but that's the way X is.

  22. Clipboard Program by Greyfox · · Score: 2, Informative
    xclipboard helps a little bit. It'll buffer copies and pastes and let you select between them. I use it when the copy/paste behavior really starts to piss me off. It's helpful with emacs too.

    The problem is X leaves copy/paste (and pretty much everything else) up to the application, and every application does it differently. Ideally one day we will all settle on a widget toolkit that enforces a standard copy/paste behavior. I'm not holding my breath though.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  23. X Selection by amightywind · · Score: 2, Insightful

    Linux automatically performs a copy while the middle mouse button performs a paste.

    This has nothing to do with your machine running GNU/Linux it is the X selection mechanism and its use for copying text. You'd have the same issues on any machine running diverse free software X based applications. There is no good answer for you. It is one of the weaknesses of a federated system.

    --
    an ill wind that blows no good
  24. Word of wisdom: emacs by smittyoneeach · · Score: 2, Informative

    The more you use it, the more you use it.
    Out of the box, it might not do much of anything you want, but few problems you can envision haven't been solved.
    Only thing I haven't seen yet is a PalmOS version, so I can run it on my Kyocera7135. Got one of those external keyboards; but, hey, that's motivation to figure out how to configure a GCC cross-compiler and add something to the emacs canon.
    Other than PalmOS, emacs is OS and window-manager (if any) agnostic, and comes with a ridiculous menu of existing tools.
    Go, emacs.

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  25. ^U and ^K by ShadowFlair · · Score: 2, Interesting

    I am starting to pick up on clicking the end of the URL, ^U and then middle click. Or, click the middle of the URL, and ^K to kill the rest of the line.

    At home (on Windows) I use the True X-Mouse Gizmo which makes Windows mouse more X-like(select = copy, middle = paste, raise/lower window). One thing nice about it is if you explicitly hit ^C (as opposed to select copy) it knows to not copy the next time you select some text. You can also middle-click while dragging to turn on/off copy.

    This is kind of confusing at the beginning, but it sure beats all the accidental copying I've done.
    --
    To iterate is human; to recurse, divine!
  26. try going back to windows by big+daddy+kane · · Score: 3, Interesting

    if you think thats bad try going from getting used to that back to windows, i still middle select and expect to have it paste :p

    1. Re:try going back to windows by Too+Much+Noise · · Score: 3, Interesting

      Tell me about it! especially in Firefox, with everything looking just like in Linux. select, middle-click ... wtf??? oh, right ... keyboard :-(

      No matter how much windows users complain about it, middle click selections are sooooo useful if you understand them.

    2. Re:try going back to windows by mvdw · · Score: 2, Funny

      Even worse is that triple-click doesn't work in Windows. I guess MS didn't invent it, unlike the double-click (see other /. story).

  27. Re:This is the correct behavior by th77 · · Score: 2, Insightful

    In this case, one action is completely identical to another (highlight to copy is indistinguishable from highlight to select) and you end up with a potentially destructive situation. When something like this is considered normal usage, it may not be "wrong" but it sure ain't "good."

    --
    Your favorite sig sucks
  28. X copy/paste by Too+Much+Noise · · Score: 5, Informative
    Actually, there are 3 selections in X. How's that for confusing?

    The current consensus on freedesktop.org is something along the lines of:

    1. The primary selection is to be used for middle-click pasting.
    2. The secondary selection is unused now
    3. the clipboard selection is to be used for Windows-style copy/paste.


    The problem is that some apps use only the primary selection for all copy/paste operations, so it can get confusing.

    For more info, look here
    1. Re:X copy/paste by Too+Much+Noise · · Score: 2, Informative
      if you follow the link, you'll see they say:
      explicit cut/copy commands (i.e. menu items, toolbar buttons) should always set CLIPBOARD to the currently-selected data (i.e. conceptually copy PRIMARY to CLIPBOARD)
    2. Re:X copy/paste by mivok · · Score: 2, Insightful

      I disagree with their recommendation that Secondary shouldn't be used. The submitters problem, selecting something for the purpose of copying, then wanting to use another selection is an ideal situation for the secondary selection - when you realise that you require the second selection, press a hotkey to swap primary and secondary selections, do the selection work, swap back and middle click to paste the original selection in.
      This probably doesn't need to be implemented at a client level though, perhaps a utility that works globally, setting the hotkey (or perhaps a spare mouse button on a multi button mouse) to swap the two selections. Anybody know if such a utility exists?

    3. Re:X copy/paste by Carewolf · · Score: 2, Informative

      Actually the problem is easierly solved using the clipboard. Just press CTRL+C, then select and delete and press CTRL+V. If implemented correctly the selection has not overriden the clipboard.

  29. XFCE by jeddak · · Score: 2, Insightful

    The XFCE window manager has a nice clipboard management utility that sits in the Dock. Clicking on it displays the last 8 or so things that you copied/cut. Selecting one "arms" it so that you can paste that item.

  30. Re:This is the correct behavior by peterb · · Score: 3, Funny

    If the people who built X designed a car, you'd have to start the engine by turning a crank, and accelerate by dangling more food to the hamster running in the flywheel attached to the driveshaft.

    Adapting to stupid, broken, and braindead things -- such as the X cut and paste lossage -- is itself stupid. Here's a nickel, kid. Go buy yourself a real window manager and toolkit.

  31. Everyone has it wrong all the time by tesmako · · Score: 2, Informative
    For some reason people seem to constantly miss how the X clipboard and selection mechanism works. So here we go again:

    The X clipboard work exactly like the Windows and Mac ones. When you chose 'copy' on an edit menu or similar (ctrl+c in a lot of toolkits) the application will claim ownership of the clipboard and copy the text to some internal buffer. When an application gets a paste in some way (edit->paste or ctrl+v perhaps) it will request the text from the clipboard owner.

    There is ALSO the selection mechanism. Whenever you select text in an application it will claim ownership of the primary selection, whenever an application receives a middle mouse click it will request the primary selection from the registered application.

    These two mechanisms are orhogonal and should in no way interfere with each other in a correctly written application. Hope this clears things up. See JWZ's small guide to the topic for more information.

  32. I don't know what software you all are using... by sab39 · · Score: 4, Informative

    In every program I use in Linux (specifically, Mozilla, rdesktop, and various GNOME stuff) Ctrl-C/Ctrl-V work perfectly, and so does the select/middleclick system, and neither interferes with each other.

    I haven't used KDE in a long time but I understand that they introduced the same behavior with Qt3/KDE3.

    Unless you're using really ancient software, pretty much everything will work in *either* mode, or you can do what I do and use a combination of both (choosing whether to bother pressing Ctrl-C to copy depending on whether you're going to need to highlight something at the destination).

    I'm really curious to understand how so many people manage to still have a problem with this. Are you perhaps expecting that since "everybody knows that select copies on Linux", Ctrl-V will paste the thing that you last selected, instead of the last thing you Ctrl-C'd, and not testing it to verify this? Or just assuming that selecting something will overwrite your Ctrl-C buffer? I'd like to believe that people would actually test these things before posting Ask Slashdots about it, but you have to wonder...

  33. Re:Another Annoying Linux-Ism by aldousd666 · · Score: 2, Informative
    That's easy enough to fix. In your .rc file (or .login file) on the target host, set the terminal type to whatever you're used to. vt100 or ansi seem to work ok, but stick to one and you don't have to keep switching. I use tcsh, so in my .tcshrc file on each host, I have two lines that say

    setenv TERM ansi
    tset

    then I always use the ansi terminal settings (i.e. backspace not Ctrl-H)
    --
    Speak for yourself.
  34. The solution by gr8_phk · · Score: 2, Insightful
    The solution would be this: The implicit copy that is performed by selecting text doesn't happen until that text loses focus. For example:

    1) I highlight a URL in some text.
    2) I highlight the URL selector in Mozilla - this causes the previous highlighted text to lose focus and causes it to go to clipboard.
    3) I middle-click the URL in Mozilla (which never lost focus) and the clipboard text goes in.

    Not sure how "focus" actually works in this case, but you should be able to understand what needs to change to make it work. And for goodness sake have the FSF patent this so only Free Software will be able to use it. As the "inventor" can't I still patent for a short time after this public posting?

  35. Re:"Correct?"-- A bit off topic, a bit flame-y by deebaine · · Score: 5, Insightful

    No offense, but this arrogance is exactly why Linux has insignificant desktop market share. Until the Linux community can get off its high horse ("This is the correct behavior??" Who says?), it will fail to attract users.

    Specifically, it will fail the "my mother" test: Why would my mother want to use this? As a disclaimer, let me point out that my mother has postgraduate education, has started a successful business, is a successful archaeologist, etc. We're not talking about a country bumpkin here. But she doesn't much like, or understand, computers. It took her long enough to figure out Ctrl-c Ctrl-v; she doesn't want to learn another behavior.

    The fact is that if Linux wants people to "adapt", then it needs to offer *evident* benefits beyond what Windows offers (again, subject to the my mother test; she doesn't care to recompile anything at all, ever). I might see enough benefit to tolerate some annoyance (I've never really noticed this as a big one, though I'll now be sure to count the times that I errantly cut/paste things), but she doesn't.

    -db

  36. you are wrong by Ender+Ryan · · Score: 2, Informative
    1. There is no such thing as "X Windows"

    There are tons of SDKs for X-Windows, almost all of them using a separate clipboard implementation/mechanism.

    2. The above is completely false. X has a primary and secondary copy/paste buffer. It always works the same way, the only real caveat being that apps can use different key combos to control the primary buffer. I haven't used an app in years that used anything other than control+c/v for the primary buffer.

    --
    Sticking feathers up your butt does not make you a chicken - Tyler Durden
    1. Re:you are wrong by jsebrech · · Score: 2, Insightful

      Ah. How do you call that thing that gets launched when you type "startx" then? I think we just have a terminoloogy problem right here.

      What the parent meant, and what I think is silly too, is that you're only supposed to call it the X Window System, X Window, X, X11, or basically any variation containing X except for X-Windows, which sounds a bit too much like windows, and some people have a visceral reaction to even just the name of a microsoft product.

      There are PRIMARY, SECONDARY, CLIPBOARD. Actually, apps can ask for any clipboard by providing their own names. Too much liberty in the implementation and a lack of a properly defined standard is the main problem.

      I disagree. There is a clearly defined standard on freedesktop.org, not everyone follows it though. The reality is that not prescribing default policy for anything was a really dumb idea. Still, that doesn't mean it's too late to prescribe that default policy now, and the freedesktop project seems to be doing that, with clear definitions for window managers, clipboards, mime types, app menu's, desktop icons, and so on...

    2. Re:you are wrong by Pieroxy · · Score: 2, Insightful

      There is a clearly defined standard on freedesktop.org, not everyone follows it though.
      You are right. There are plenty of standards, each one created by a separate organization (freedesktop, motif, etc...). The problem is that we need an authority to set the standard. Because multiple standards is not much better than no standard.

      The reality is that not prescribing default policy for anything was a really dumb idea.
      Agreed. And now we have to live with all these apps that were developped before freedesktop.org, and most of them are here to stay. Sure, the real broad ones will be adapted... Have you tried to launch XGhost on a recent distro? Still looks as bad as the first version. This is what I'm talking about. For sure Moz and OpenOffice are nicely written, but that's just two apps!

      Still, that doesn't mean it's too late to prescribe that default policy now, and the freedesktop project seems to be doing that, with clear definitions for window managers, clipboards, mime types, app menu's, desktop icons, and so on...
      And I'm happy they're doing it. The questions are:
      1. Will everyone follow. They are no authority, so if any party decide they're not going to follow it, we're back at our main problem.
      2. Who will port those gazillion apps that we do use, but have been developped before? Answer: No one. Because of general laziness, sure, but also because some of them aren't even open source!

      So while we are going in the right direction (hopefully), there is still a lot of baggage that comes with the system.

  37. Here is the way it SHOULD work. by dpbsmith · · Score: 4, Funny

    Copy should be control-alt-caps-lock-tilde. Paste should be escape-escape-shift-F6 and click the first and fourth mouse buttons. This pastes in two copies, which is what I usually want. If, for some reason, I only want one copy, then after I pasteI just press PgDn on the numeric keypad with NumLock on, then hit SysRq twice in rapid succession (usually, within half a second). This conveniently deletes the second copy.

    If your mouse has less than four buttons, it's broken. Get one with four buttons.

    Simple. Clean. Logical. Convenient.

    I like it this way so this is the right way.. I know what I like, and that makes me a UI expert.

    If anyone wants it any other way, well, let them set it as a non-default user preference. And if the preference isn't honored by every application, well, tough.

    1. Re:Here is the way it SHOULD work. by marvinalone · · Score: 5, Funny

      You use emacs?

  38. Re:The writer needs a clue. It is orthogonal. by CarrionBird · · Score: 4, Insightful
    It doesn't work that way in the programs the writer is using. That's why he is having the problem.

    Telling someone that they are clueless beacuse they use a differnt setup than you is not very helpful.

    --
    Free Mac Mini Yeah, it's
  39. Ctrl Insert, Shift Insert by BrookHarty · · Score: 2

    I didnt see anyone mention the whole Ctrl Insert, Shift Insert option.

    Works on some linux apps and desktops, still works in windows.

    I have my putty setup as an X window, middle mouse click, right mouse extends, middle pastes.

    What pisses me off is command shell for windows, I just start up sshd under cygwin and use putty to ssh into my own windows box. Much better...

  40. Re:"Correct?"-- A bit off topic, a bit flame-y by Too+Much+Noise · · Score: 2, Interesting

    Ho-hum ... your 'mother test' is actually the 'Windows user test'. X copy/paste predates Windows copy/paste. And it's more flexible (this being currently the problem). This is the correct behavior for X, not for Windows.

    If the 'typical mother' had started with a DEC instead of Win3.x/Win9x, middle click paste would have been the 'correct and expected behavior'.

  41. the "universal standard" by XO · · Score: 5, Informative

    Is supposed to be the original Windows copy/cut/paste buttons:

    Copy: Ctrl-Insert
    Paste: Shift-Insert
    (I can't remember what Cut is, I never use it.. probably ctrl-delete)

    Then, sometime in the Win95 or Win98 era, Microsoft changed it to the less-intuitive and less-standard Ctrl-C, Ctrl-V.

    And Microsoft was a member of the body of people/organizations that made Ctrl-Insert and Shift-Insert the standard.. then went and trashed it...

    This is the CUA92 user interface universal standard, by the way.. and i'm a bit busy right now to do a google search for it, but I'm sure anyone interested could find it..

    --
    "Champagne for my real friends - and real pain for my sham friends!" http://ericblade.postalboard.com/
    1. Re:the "universal standard" by silicon+not+in+the+v · · Score: 2, Insightful
      Copy: Ctrl-Insert
      Paste: Shift-Insert

      These work with the primary selection under X by the way.

      Then, sometime in the Win95 or Win98 era, Microsoft changed it to the less-intuitive and less-standard Ctrl-C, Ctrl-V.

      I don't know why, but I'd venture a guess and say that it has to something to do with the Mac (apple-C, apple-V, etc.). Remember in the early nineties Microsoft Office was the office suite for the Mac, but was far behind WordPerfect and Lotus for DOS/Windows.
      I think I understand the reasons for these types of standards and changes. When they used the Insert types of commands, that was probably because it was a key combination that wouldn't send any info through a terminal shell or command prompt. Ctrl-C is usually a cancel command in a terminal window. When applications were switching to being almost all graphical, Ctrl and letters became acceptable. The main reason for the move to Ctrl-C I think is to have the cut, copy, paste commands convenient for the left hand while the right is on the mouse. C was probably chosen as the mnemonic for Copy, and then the keys on either side so that cut/copy/paste would be three consecutive keys.
      --
      We may experience some slight turbulence and then...explode. -Capt. Mal Reynolds
    2. Re:the "universal standard" by LenE · · Score: 4, Informative

      Unfortunately, Ctrl-Insert and Sift-Insert were never the standard method in Windows, because Microsoft never really standardized anything. These were WordPerfect methods.

      The first standardization, well before 1992, was the Macintosh Human Interface Guidelines published in Inside Macintosh around 1983-84. This is the origin of the Ctrl-C and Ctrl-V.

      Apple did lots of usability studies for the Mac, and the fruits of this labor were the one-button mouse and the Command-z,x,c & v, as well as other standardized "Command Key Shortcuts."

      This cluster of keys were selected because of their proximity to the Command key, and the ease of pressing them with the left thumb and index finger. Z, X, C, and V corresponded to Undo, Cut, Copy, and Paste, the most common operations that were required in a GUI-based work system. Others combinations were standardized for closing windows (Cmd-w), Saving (Cmd-s), Printing (Cmd-p), and Quitting programs (Cmd-q). All Mac programs had to include these functions and use these standardized shortcuts if applicable.

      Sun used these same Command Key Shortcuts in OpenLook, and eventually Microsoft embraced and corrupted these combinations by replacing the Command key with the Control Key, which required using the left pinky finger instead of the thumb to press. The Alt key which is positioned in the same place as the Command key was already claimed in Windows for their pseudo-standard of activating menus based on the underlined letter. The Command Key Shortcuts outside of this cluster were partially implemented for printing and saving, but quitting programs or closing windows is still the archaic and unintuitive Alt-F4 on Windows.

      -- Len

  42. Haven't had this problem in a while... by dR_gOnz0 · · Score: 2, Interesting

    Other than simply getting used to the way unix handles it's clipboard, I've found that using programs compiled from similar libraries does away with this issue.

    I use Gnome 2.6 currently, and using Ctrl-C Ctrl-V for copy and paste works in all of the applications I use. Although I do revert back to the double click, and a middle click a lot.

    I can only assume that using KDE is similar as long as you stick with KDE or QT apps.

    The problem is probably more prominent when using different applications that rely on different library sets. If you're using Gnome as your desktop, and Konq as your browser, ya, you might have an issue. If you use Gnome, and epiphany; you probably won't see this problem.

    That's my two cents.

  43. bash can use either emacs or vi ctrl keys by zapp · · Score: 2, Informative

    Actually that's an Emacs control sequence.

    Bash uses emacs control sequences by default, but can easily be set with either of 2 ways...

    1. set environment variable EDITOR=vi
    2. at prompt, type: set -o vi

    then bash will act just like vi

    --
    no comment
    1. Re:bash can use either emacs or vi ctrl keys by Prowl · · Score: 2, Informative

      i could be wrong but i belive those sequence are readline(3), which is used by emacs/bash etc

      --
      That man tried to kill mah Daddy
  44. Thank God for Windows (troll?) by Anonymous Coward · · Score: 2, Insightful

    Call this a troll if you must, but there is much to be appreciated from the monolithic leviathon.

    OS behavior that is uniform throughout its (correctly written) applications is essential for end user ease of use and training. Period.

    And why do some folks here try to deflect blame from the Linux operating system. (Its X's fault, Linux is as innocent and pure as the driven snow). Fine, then Linux peddlers need to create a true "Linux GUI" that functions uniformly accros applications.

    These dumb mentalities of: "thats just the way it is" or "if you dont like it, you fix it" or "we can't change longtime stupid unix behaviors, the users must learn to workaround it" is exactly what keeps Linux from growing into a legitimate desktop OS.

  45. Re:This is the correct behavior by Self+Programmed · · Score: 4, Insightful

    I am sorry but you cannot speak for me about what I prefer. I have changed my jed editor to do ctrl-c and ctrl-v properly. I have done contract work using mouse highlighting on an HP UNIX system. It is a torture to be constantly changing models and control behaviors. X should adopt 2 standards, one which is ctrl-c ctrl-v and the other the mouse highlight. The user should be able to select which one they want to use, and it should affect all tools used under X. This is not about who gets to claim the interface is right, this is about the user having an interface that THEY can use.

  46. Re:"Correct?"-- A bit off topic, a bit flame-y by IamTheRealMike · · Score: 2, Insightful
    Your mother would not know about the secondary/middle-click clipboard unless she was told about it. She equally would not be using emacs, which is one of the few remaining broken apps (and you can unbreak it with a setting).

    So, basically, the clipboard would work OK for your mother. It's power users who try and combine both mechanisms at once then get confused who it doesn't work for, but there's no way around that.

    The real problems with the X clipboard have more to do with handling large quantities of data, and standardised data formats than middle click vs ctrl-c/v.

  47. Yes, there *IS* a common clipboard standard! by smcv · · Score: 4, Informative

    Yes, there is a common clipboard mechanism. Once you understand that there are two separate clipboards (and that this is a feature), everything makes sense.

    Here's how it behaves in modern X environments like KDE 3, GNOME, XFCE, etc.:

    - There is a clipboard (called CLIPBOARD in the specs), which you interact with by explicit copy and paste commands, for which the key bindings are conventionally Ctrl+C, Ctrl+V, Ctrl+X to copy, paste and cut respectively. Use it whenever you would use the Windows or Mac OS clipboard, teach it to new users, and so on.

    - As an extra "easter egg", applications can manipulate the selection (the currently highlighted text) using the same API. The convention is to select text by dragging (or Shift+cursor keys, etc.) and to copy the selection from another program by pressing the middle mouse button. I will reassert: this is an "easter egg" for advanced users. The specs call this the "primary selection", PRIMARY (there is also a SECONDARY, but I am not aware of any program that uses it).

    As documented here:
    http://www.jwz.org/doc/x-cut-and-paste.html
    http://pdx.freedesktop.org/Standards/clipboards- sp ec/clipboards.txt

    OK, now the holes in that logical explanation:

    - KDE 2 used to use Ctrl+C, Ctrl+V to manipulate PRIMARY. This was wrong and had all the flaws the poster cites. Solution: Upgrade to KDE 3, problem solved.

    - Some other broken apps do the same. Solution: either fix them as you suggest, or stop using them. GNU Emacs 20 was apparently broken in the same way as KDE 2, while XEmacs and GNU Emacs 21 apparently work in the same way as KDE 3 (I can't confirm this, I use vim myself).

    - Some (usually older) apps (like xterm) don't have copy or paste commands at all, but do have the selection/middle-click behaviour. Solution: either use something else (e.g. Konsole if you're a KDE fan) or learn the middle-click behaviour too. Since the command line is generally considered to be "hard", it shouldn't be that much of an intellectual leap.

    - Ctrl+C already means something very common and specific (send a SIGINT) in console windows, so the standard Windows-style keybindings cannot be used in console windows. This is a historical clash between the Unix/DOS "Ctrl+C interrupts" and the Windows/OS2 "Ctrl+C copies" (on the Mac the convention is actually Command-C, so Ctrl is still available, and OS X's Terminal uses it as you'd expect) - Windows' MS-DOS-derived command prompt has the same conflict and a similar solution.

  48. Excellent article on the subject by toomim · · Score: 5, Informative
    You should read this article: http://www.jwz.org/doc/x-cut-and-paste.html.

    In a nutshell, there are TWO completely different clipboards implemented in X:

    1. The "select->middle click" clipboard
    2. And the "copy->paste" clipboard

    These two clipboards do not affect or interact with each other.

    Other OS's (like Windows) only have the second kind. Modern Unix applications (like anything based on GTK, QT, or Mozilla) support both clipboards simultaneously and independently.

    Old X Windows applications like XTerm only support the first kind. This is why you can't copy from or paste into an XTerm using C-c and C-v.

    So if you are using modern applications, you should always be able to use C-c and C-v. If you have to copy or paste something into an XTerm, you will have to select it and middle-click. The solution is to use a moderm terminal, like gnome-terminal, instead of XTerm.

    If you read the article, you'll learn that there are actually three different clipboards in X (one of which is never used), and that Emacs and XEmacs then implement yet another fourth clipboard!

    Also see the freedesktop.org reference.

  49. Re:X copy/paste - Swap??? by DGolden · · Score: 2, Insightful

    Here's an idea, publically disclosed so no evil little fuck can patent it:

    Whenever PRIMARY changes, make the secondary selection the previous primary, and add a "Swap" menu item + shortcut to make Cut/Copy/Paste/Swap.

    Use Case:

    Highlight some text "hello", lets say the highlight is bright blue background.

    Go to somewhere else, highlight some more text "goodbye". "goodbye" becomes bright blue background indicating it is now PRIMARY. "hello" has become faded blue, indicating it is now SECONDARY.

    Now "Swap". "hello"+"goodbye" exchange places! I think "hello" in its new position should have the PRIMARY selection, and "goodbye" in its new position the SECONDARY, as that's where the user will "be" after swapping, and a second "Swap" will restore the text to its original state.

    Most cut/paste operations I do are reorganisations of that nature. Other people might differ - but it's certainly one of those features that would keep legal people loyal to a word processor, say.

    I think it would be dead handy, and no-one I know is doing it.

    --
    Choice of masters is not freedom.
  50. Missing the real story by rabtech · · Score: 4, Insightful

    The real story is why doesn't Linux have a clipboard standard with well-defined interop standards ala OLE/COM?

    I can copy text from VS and paste it into Word, in which case it pastes as RTF with colors and formatting. If I paste it into notepad, I get plain text. This is because the clipboard understands high-level text (RTF) and casting that down into standard text. It also allows apps to provide multiple data formats; copying an image can put a JPG, Bitmap, and PNG on the clipboard and the consuming app can select the format it likes best.

    Even better would be to support Office-style multiboard functionality where there are 10-12 "slots" on the clipboard and you can cut and paste from each slot at will.

    (Ex: in VS, CTRL+SHIFT+V will cycle through each of the last X copied items for pasting, meaning you can go to one spot of code and copy, then another and copy, then open a different source file and copy a block, then paste all three together somewhere else very easily.)

    --
    Natural != (nontoxic || beneficial)
    1. Re:Missing the real story by cthulhubob · · Score: 2, Informative

      X supports a similar method known as "content negotiation" whereby the programs decide between themselves on a compatible format for the data being moved.

      I just selected some HTML text, including a hyperlink, from Mozilla, middle-clicked in a GAIM window to send it to a friend and it showed up perfectly formatted, with an active hyperlink in it.

      If you want clipboard history / multiple clipboards, you have to use a third-party tool to do it, same as in Windows. It's called XClipboard.

      --

      In post-9/11 America, the CIA interrogates YOU!
  51. Re:-1 troll/idiot/wrong by stratjakt · · Score: 3, Insightful

    Not just the X clipboard, the whole ball of wax.

    I understand X's seperate buffers. I understand in one app it may be Ctrl-C to get the clipboard buffer, in another it may be Alt (oh excuse me, Meta) Q. Who knows.

    I also know that most apps have their own redundant application-level cut/copy/paste. In pico/pine/nano its Ctrl-K for cut, and Ctrl-U for un-cut. I know if I want to cut and paste within a single text file I can use C-k and C-u to move lines. If I want to move text from xterm A to OOo document B it's something different entirely.

    I know the unix labs at my school had cheatsheets the size of movie posters on every machine to remind casual users how to copy a block of text, and other trivial tasks. I also know they were perpetually empty, and the Windows and Mac labs perpetually full.

    I also know it's annoying and makes even the most airbrushed linux gui behave like an unprofessional piece of crap.

    You may enjoy memerizing key bindings for umpteen million different apps, but I don't and neither does the majority of the unix desktop's potential market.

    --
    I don't need no instructions to know how to rock!!!!
  52. X should deal with more interface selection by Self+Programmed · · Score: 2

    X should provide a selection mechanism for user interface customization, and then pass that on to every application. If there was a common cut and paste mechanism then this would be even better. Apps could still reserve a buffer for themselves. There is more than one answer to most interface decisions and this will continue, there is no use in insisting that the current behavior is "right" and everyone better learn it. What is needed is that the user be able to select an interface model at the top level and that it be honored by all apps running under that level. The reason I adopted Linux is to able to fix interface problems and not be stuck with the choices that someone else made.

  53. You didn't grew up for long... by lfourrier · · Score: 2, Informative
    I grew up on Windows machines, using the ol' ctrl-c to copy and ctrl-v to paste.

    Those are not old. Those are a copy of Cmd-C Cmd-V from the Mac.

    The original old shortcuts for Microsoft Windows are Ctrl+Ins and Shift+Ins. And when I'm on a Microsoft Windows station, my fingers are doing them without me thinking. But alas, less and less application support them, nowadays.

    If Microsoft managed to change, in the course of a few years, such a fundamental characteristic of the UI, why X could not ?

  54. Re:"Correct?"-- A bit off topic, a bit flame-y by lukewarmfusion · · Score: 2, Insightful

    I agree with you. Nearly every time someone posts an honest criticism of Linux usability or compares an open source app to a commercial app, someone responds similarly. Comments like yours are generally modded down as overrated, troll, or flamebait.

    In this case, it's ludicrous to argue that the middle-click is better because "it's always been done that way." If users find it easier to CTRL-C/V, then it should be done that way instead.

    If Linux makes an improvement upon some usability issue, people will gravitate toward it. If it's harder to use, they will stay away (unless something else attracts them).

  55. But wait... by gillbates · · Score: 5, Funny

    Wasn't this the very thing that open source was supposed to avoid?

    You don't like the copy and paste works? Fine - you've got the source code, so just change the key codes and recompile.... right?

    After a few frustrating hours of digging through source code, you finally find the keybindings. You change them, do a make.... and make crashes. So then you debug the make script and realize that you _ALSO_ need the source code to an obscure set of libraries. So you Google it, download the source, and it ALSO won't compile, because you've got the wrong compiler version.

    So you figure, what the heck, it's time to upgrade gcc anyway. You download the sources, compile it, only to find that you also need to download the sources for the shared libraries as well. Tomorrow, you'll resume.

    Well the weekend is coming up, and you've finally got the compiler and all its dependent sources together, and you start the compile. It actually compiles and installs just fine... And then you try to compile those obscure libraries and the compiler crashes. Turns out there's a kernel bug which means the new version of the compiler won't work with older kernels. You think, well heck, I'll just upgrade my kernel, and you ftp the sources.

    So you configure your kernel and then type 'make clean; make dep; make install' and kick off the process; it dies - once again, your compiler segfaults. So now you've got an older kernel with no way to compile the new one...

    So next weekend you decide that you're just going back to the old compiler. You rpm -i the compiler, and start the kernel compile process again... but the new kernel won't compile with the older compiler, and the newer compiler won't run on an older kernel....

    You take a walk. It's nice to see the sunshine, and feel the breeze for a change.

    It's tuesday and you've figured out that you can apply a few patches to your current compiler source, compile that, and then you'll be able to compile the most recent version of the compiler. So you do that. After you've built your intermediate version, you install it, build your kernel, and then recompile the newest compiler sources. After a reboot, you're able to successfully compile those obscure shared libraries, and rebuild your application.

    Then you fire up your modified ctrl-c, ctrl-v enhanced software....

    It segfaults. For no apparent reason.

    So you Google the newsgroups, and lo and behold, someone else is having the same problem! But they don't know what the problem is.

    Next week, your newsgroup buddy has found the problem. It turns out that a change in the way gcc handles memory allocation causes your obscure libraries to crash when compiled with the newer versions. They recommend using an older version of the compiler to build the software.

    So you go back to the intermediate version, recompile, and finally, everything works great. For a few days, you've been enjoying the benefits of ctrl-c ctrl-v copy and paste. Life is good.

    And then, you notice that KDE starts crashing at random for some unknown reason...

    --
    The society for a thought-free internet welcomes you.
  56. Re:Training and repetition by Jim+Hall · · Score: 2, Insightful

    The fact that copy/paste is buggy or sluggish under X-Windows has a simple reason: There are tons of SDKs for X-Windows, almost all of them using a separate clipboard implementation/mechanism. Saying that you deal with a technical problem by getting used to it, is saying that technology will fail to address the problem. As you say, "Linux is different" (almost true, since it has almost nothing to do with Linux, but rather with X-Windows). I would rather say: X-Windows clipboard management sucks. If you want to use Linux on the desktop, you'll have to get used to it.

    While true, I found a rather interesting "workaround" when I explained to my mother how to use her new Linux desktop (disclaimer: she asked me to move her to Linux, and after several weeks of me asking her "why do you want to learn something new?" and setting an expectation for what she'd find on Linux, I finally moved her to Red Hat Linux. Also, I have run Linux 100% as my desktop since 1998.)

    The "workaround" was to explain that Linux has two different kinds of clipboards, and it would work differently for her under Linux than the clipboard worked under Windows. I explained it like this:

    One clipboard (which I referred to as the "local" clipboard) was used within a program to let you copy/paste stuff. For example, within Mozilla you can copy some text and paste it into a new Mozilla Mail message. Or within StarOffice, you can copy a selection and paste it elsewhere within your document.

    The other clipboard (which I called the "global" clipboard) was used to copy/paste between applications. You used this by selecting text with the mouse, and middle-clicking (or in her case, clicking both left and right mouse buttons together) to paste the text somewhere else. For example, you could highlight some text in Mozilla, and middle-click to paste it in your StarOffice document.

    I explained the "global" clipboard would only let you copy/paste text. And "local" clipboard was implemented by the program, but would let you copy/paste graphics, etc, just like in Windows. (If you want to insert a graphic from a web page into your StarOffice document, I showed her how to do "Save As" and then insert the graphics file into StarOffice.)

    As a newbie to Linux, she only used Mozilla for browser and mail, and StarOffice for spreadsheets, presentations, and documents. I didn't have to worry about chat software or anything "weird". This was a fairly simple migration.

    Yes, I know this is not technically the correct explanation. But when trying to explain how the copy/paste thing works to a non-Linux user, I found this simplification made it easy for her to understand. And it set the right expectation - she never asks about why copy/paste acts the way it does. My mother (not a technical user) had the expectation set for her that Linux was not Windows, so copy/paste wouldn't work just like Windows. The concept of "local" vs "global" clipboards was different, but then again she was on a different operating system. It didn't take her any time to get used to this - she understood right from the start when to use middle-click and when to use copy/paste.

    Interestingly, I was in the next room when I heard her explain this to one of her (also non-technical) friends. She said something like "...and that's why you can do copy/paste from the file manager, but you can't just middle-click the file there." I smiled, since it was technically not copy/paste in Nautilus, but I thought it was neat that the simplified concept of "local" vs "global" clipboards seemed to work so well for her.

    I suppose I'll go to hell for telling a white lie about how it really works. :-)

  57. You've got it all wrong by Rysc · · Score: 2, Informative

    This is a common mistake. In reality:

    Highlighting text puts it into the X selection buffer.
    Middle clicking pastes the X selection buffer.
    CTRL+C (or whatever copy is set to) puts text onto the X clipboard.
    CTRL+V (or whatever) pastes the X clipboard.

    Notice: THERE ARE TWO BUFFERS. The X selection buffer and the X clipboard buffer. If your app overwrites the clipboard on highlight then it s misbehaving (see fd.o for what is "right").

    Adjust your thinking just a smidge: When you select, it does not copy. It acts just like in Windows... only you can also access the last selection on a way Windows prevents.

    Repeat: If your apps do not behave this way, /they are broken/. Don't blame *nix, or X, blame the author of the app. Some apps are deliberately broken (because it makes More Sense[tm]) but not terribly many.

    --
    I want my Cowboyneal
  58. Double bonus, since... by Ayanami+Rei · · Score: 2, Informative

    sites like slashdot, sa and 2/4chan people will purposefully not create clickable links, but type the URL-as-text. Just select, CTRL+N, middle click, no problem.

    The only thing that gets you is slashdot's page-widening-defeating mechanism. But you still have a chance to correct the typos in the URL bar if it 404s on you.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:Double bonus, since... by Trejkaz · · Score: 2, Funny

      But do you really think it's that easy to prank someone when you can see http://www.goat.cx/ in plain view? Seriously...

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
  59. Middle-click doesn't paste. It drops. by BZ · · Score: 2, Insightful

    I'm not sure why people think of highlight-and-middle-click as pasting. It's more like a drag-and-drop operation except that you don't have to keep the left mouse button down during the drag and you can rearrange windows before you drop. Apart from that, all the behavior is exactly identical to drag-and-drop.

    Control-C and Control-V are copy and paste (and use the CLIPBOARD). They work just like Windows (or like the Mac clipboard). If an app doesn't work right with these, it's just broken. File a bug on the app.

  60. Re:Pasting urls - use Ctrl-L in Mozilla by Peter+McC · · Score: 5, Informative

    In Mozilla and Firebird at least there is the very useful, but little-known shortcut Ctrl-L. This highlights the url bar but does *not* copy it to the clipboard. So when I'm in that situation I do Ctrl-L, delete, middle click.

    Of course, the middle-click on the page body works too, as long as you don't have to edit the URL. Ctrl-L is still super-handy if you want to type in an URL by hand or something.

    --
    You know what I hate? Wait, what do you like? I hate that!
  61. Easy, if you want UNIX learn to use UNIX by jmorris42 · · Score: 2, Interesting

    Really, the sun doesn't rise and set over Redmond Wash. UNIX/X has been using the middle button to paste for a decade or so. If you want to use UNIX you shouldn't expect it to be just like Windows. What is it with this low self esteem problem! People don't migrate to the Mac and expect IT to act like Windows but everybody migrates to Linux/X and sits around bitching because it isn't Windows. KDE and GNOME are terrified of doing anything that doesn't look like Windows because it might hurt adoption. Bull!

    Linux/UNIX/X/GNU/blah is a different culture, just like Mac. Just because YOU dual boot the same machine to play games doesn't change that reality. And if you really decide you don't like UNIX culture just keep running Windows... or go buy a Mac if you would like something that won't contribute to the Outlook worm problem.

    --
    Democrat delenda est
  62. Rotate cutbuffer by AngryRodent · · Score: 2, Interesting

    Back in college (about '93 or so) I got frustrated enough by this to write a little X app to build multiple cut-buffers and rotate through them. Something like 10-20 lines of C. Bound it to a twm menu, and ta-da. Highlight, click, highlight, delete, click, paste. I'm sure someone has written something far more usefull in the same genre by now..

  63. It's not a feature, it's a bug by GrouchoMarx · · Score: 5, Insightful

    As the parent and others have posted, X11 has TWO (well, three but no one uses the third) clipboards. One is highlight/middle-click, and one is Copy/Paste. The proper, documented (see parent and others) behavior is for both to be implemented and for both to operate completely and entirely independently of each other.

    In a properly implemented program, you should be able to use it as if there is no Primary Selection feature (highlight/middle-click) and not notice the difference from your usual Windows/Mac Ctrl+C/Ctrl+V habits. If you come across a program that does not do that, and mixes them together, that is not a feature that is a bug. Report it as a bug. If the developer dismisses it, report it as a bug again, email the developer telling him that you're going elsewhere, and switch to any of the plethora of other programs around (Free Software is great like that) that do things properly. Eventually someone will get the message.

    That's one reason why I stick to KDE applications whenever possible. All KDE applications (ie, ones provided by the KDE.org team) are well-behaved and non-buggy in this respect. Programs that misbehave should simply not be used. Period.

    --

    --GrouchoMarx
    Card-carrying member of the EFF, FSF, and ACLU. Are you?

  64. Stop blaming Linux! by Dominic_Mazzoni · · Score: 2, Informative

    I can't believe this is still an issue! I can't think of a single Linux app that I still use regularly that doesn't support Windows-and-Mac-style copy and paste. I just copied some text from OpenOffice to Mozilla to Konsole, no problem. The GNOME and KDE folks agreed on a common clipboard standard years ago, and probably 90% of popular Linux desktop apps conform.

    Complaining because some free Linux apps still don't support the clipboard is like complaining that the Windows clipboard is broken because some freeware text editor doesn't copy and paste between programs.

  65. Copy Paste + laptop = no by Oriumpor · · Score: 2, Interesting

    Unless you have an alternative mouse on mouse laptops there is no middle click, hence no decent way to copy + paste in linux applications. I'm not about to setup something involving ctrl/alt etc to emulate a middle click when something like CTRL+V is so much more convenient, and reliable.

  66. Too many replies, you won't see this. by Marc_Hawke · · Score: 2

    I've read through the comments, and everyone seems to think the auto-copy is a bad thing. I'm sure after you've been stung by it that it is.

    I'm in the windows world, and I have the opposite problem. TeraTerm (my emulator of choice) has copied this 'auto-copy' concept. So, if I want to copy something from in the terminal window, I just highlight it and quickly go on my way.

    However, nothing else does. :) So, I'm often found highlighting something (especially on web pages) and closing the window only to discover that I never actually hit CTRL-C.

    I kept thinking that I'd like every program to do that for me...but I think what I really need to for TeraTerm to stop...so I get out of the habit.

    --
    --Welcome to the Realm of the Hawke--
  67. Re:"Correct?"-- A bit off topic, a bit flame-y by janoc · · Score: 2, Insightful

    Well, I am bit tired of these "my mother" tests. There was also an aunt Tillie test, which was about the same. Both are actually completely irrelevant.

    Why everybody encountering something that behaves differently than he/she expects starts complaining and claims that "it is the reason why Linux has an insignificant market share" ? Personally, I use Linux, Windows and sometimes Mac. Each is good for something else and they are (surprise!) tools, not a religion.

    I am working with Linux most of the time but when I have to use Windows or Mac, I have problems because the things do not work as I am used to. Does it mean, that Windows or Mac will never have significant market share ? Actually, market share has nothing to do with usability but all with marketing, folks. You rarely get something sold or adopted just based on usability.

    Back to the "mother test" - what is most important for adoption of Linux (or whichever OS or application) is not that, whether it behaves exactly the same as the thing you used before - if it did, why did you switch in the first place? Because it is "cool" ? I doubt it, that's only what the proverbial 13 year olds care about.

    It all comes down to the motivation - is this new app or OS delivering something so new, that I can swallow the inconvenience of learning something different or putting up with something not working the way I was used to or am I just looking for an excuse why not switch ? If the answer is "yes, there is something that I need", then the app will get adoption regardless whether something silly as clipboard works the same as on Windows, Mac or whatever. If such problem deters you from using the application, you probably do not need its functionality enough and you did not need to switch to it in the first place.

    An example for people complaining about Linux/Unix users being arrogant here. Disclaimer - the example holds in opposite direction as well, I didn't want to pick on some anti-americanism or some similar bull here.

    In the U.S., most cars have A/C and automatic gearbox. Here in Europe, they mostly lack both. If an American comes to Europe and rents a car, discovering this fact, do you think that the clutch pedal will automagically disappear and the gearbox change to automatic just because he was used to have it that way at home ? No, it wont, the driver has to adapt and learn how to drive manually or rent another car. Does it mean, that such cars would not sell, because the manufacturers are arrogant and expecting the users to adapt ? Somehow doesn't compute neither. In the case of the car, it came down to the decision - "Do I need to drive so badly that I can put up with it or am I rather going to walk ?"

    To conclude this my little rant, I agree, that the cut/copy-paste behavior on Linux is inconsistent sometimes and that there are applications which are broken and need to be fixed. However, this not Linux specific issue at all and hardly something preventing its adoption :-(

  68. Yes, the Linux clipboard is a disaster by dozer · · Score: 2, Interesting
    There are three things that drive me nuts about X's clipboard:
    • Select some text, go to middle-click-paste but discover that the destination already has text in it (this Ask Slashdot issue).
    • The clipboard disappears when you quit the application. Try it: copy some text, quit the app that you copied it from, and then try to paste.
    • You can only copy and paste plain text. Sure, it's theoretically possible to push alternate mime types up there too but that gets heavy really quick. I have yet to see a non-plain-text clipboard move correctly between two different Linux apps.
    Gnome Clipboard Daemon tries to fix the second problem. I have no idea how to fix the third. And here's a proposed solution for the first problem:

    Almost every text-entry box ever made has some sort of label or widget on its left identifying it (the URL bar has little "Go" or world icons, dialog boxes have "Labels: ", etc). Just adopt the convention that a middle-click on the text box's label replaces all the text in the box with the primary X selection. For example, middle clicking on the little world icon next to the left of the URL box would replace the URL with the current selection (but would not automatically go there, allowing you to edit it before hitting return). A middle click inside the textbox itself inserts text as it always has.

    It's intuitive, consistent, finger-compatible and easy to implement, especially if the toolkits support it natively.

  69. Shift+delete, Ctrl+Insert , Shift+insert by bozojoe · · Score: 2, Interesting

    Am I the only one using the old school cut, copy, paste keyboard sequences?

    --
    lick the cancle button (at least thats what our Chinese QA says)
    1. Re:Shift+delete, Ctrl+Insert , Shift+insert by Big+Boss · · Score: 3, Interesting

      Nope, I preffer those too. Probably just inertia. I have noticed that some new apps don't support them though.

  70. Ok, Whoa! by wonkavader · · Score: 2, Insightful

    I see a lot of people here badmouthing select and middle-click. Let me RUN to its defense.

    The ^C ^V paradigm irritates the crap out of me. I LOVE middle-click paste.

    I only have a problem with it when things (like TORA, for instance) don't use it properly.

    ^C ^V is one of the reasons (along with the crappy foreground window model) that I feel horribly encumbered and inefficient in Windows.

    While I understand the urge to select and replace, but if you really want it, add a modifier key like control to your select action, and arrange for that NOT to replace the primary selection.

    The fault isn't with middle-button paste, here. It's with forcing a Macintosh-ism onto a nice, clean X paradigm.

  71. how it actually works: by Jamie+Zawinski · · Score: 2, Informative
    highlighting text in Linux automatically performs a copy

    Well, no, not really. Here's how it really works.

    I totally agree that too few Unix programs support the C-c/C-v idiom, but it's orthogonal to the select/middle-click idiom.

  72. as if developers gave a damn by Anonymous Coward · · Score: 3, Insightful
    Seriously,

    This is just another instance of a far more generic class of problem with Linux (and no, i don't mean an inability to coordinate developers ).

    There is no one authority who can speak out and require that all the myriad little isolated or small development shops adhere to anything resembling a Human Interface Guideline, like Apples (or anyones).

    If Linus or someone really came down firmly and consistently on the need to have some common standards (and not just for tcp / http / smtp or whatever), this situation might change. As things stand, though, I'm not going to hold my breath.

    And before the flames begin - I love the IDEA of linux. Please! Really! Save me from Windows! I HATE Windows !!!

    But I feel like someone on a surgery table about to die while a group of insane surgeons argue about which method to use to cut into me, while some start with a variety of implements without consulting the others, and no consensus being reached.

    The problem is that the cure looks far scarier than the disease right now, and you can take that however you want.

    And telling me to go out and become a developer isn't an answer, its a fricking cop-out. This isn't something you fix with a widget, its something you fix by acting like you care, and have a professional attitude.

    There are linux conferences, linux journals, linux companies, linux-oriented scholars/scientists.

    So, why not take all that and add the last ingredient needed to make linux development a profession? (i.e. professional conduct and attitude regarding the product ).

    Hell, no one has to even starting thinking in human interface terms. No need to learn presentation skills or interface design!

    APPLE ALREADY DID IT !

    Is there anything preventing the linux community from just ADOPTING THE APPLE HIG as the defacto standard??

    Besides petty NIH syndrome ? (Not Invented Here )
  73. does drag-and-drop confuse you, too? by hak1du · · Score: 2, Insightful

    Windows applications support drag-and-drop and copy-and-paste simultaneously. Does that confuse you, too? Does it bother you that you can't drag-and-drop something while also deleting the destination?

    Well, X11's selection mechanisms doesn't, as you put it, perform an "automatic copy", it is actually separate from the copy-and-paste system, just like drag-and-drop is separate from copy-and-paste on Windows. X11's selection mechanism is a drag-and-drop operation, only that you can let go of the mouse button between selecting what you are going to drag and dropping it in the destination. It's actually significantly more convenient than drag-and-drop and significantly easier to handle. To make drag-and-drop work as well as X11's selection mechanism, you need to add weird hacks like "spring loaded containers".

    Well-behaved X11 applications should implement both X11's selection mechanism and copy-and-paste. To convert between selections and clipboards, you can use any working X11 applications that can hold the datatype you are interested in converting, like an X11 text editor or the xclipboard application.

  74. klipper and ctrl-alt-v to save you from cb hell by neves · · Score: 3, Informative
    If you use kde, it comes with a nice task bar applet called klipper. It remembers the last copied texts. All you have to do is a ctrl-alt-v and it will list your last selections, choose the one you want to past, and midle-click where you want to past it.

    If you use mozilla/firefox, another nice tip is to use the plug-in diggler, it adds a cancel button beside the browser url location field. You can then just press it to clean the field, instead of selecting and pressing del, this way the selection won't go to the clipboard.

  75. in emacs... by davids-world.com · · Score: 3, Informative

    I have solved the problem in Emacs with a customization package: it defines Apple-C and Apple-V, because I found it too annoying on my Mac. It also doesn't put marked text automatically into the clipboard (or whatever the emacs folks call it: kill-ring). you can get a package here.

  76. Here's something close... by sakti · · Score: 2, Informative

    First 2 shell scripts:

    $ cat xcopy
    #!/bin/sh
    xclip -o -selection primary | xclip -selection clipboard

    $ cat xpaste
    #!/bin/sh
    xclip -o -selection clipboard | xclip -selection primary

    Then using your favorite keymapper set these to something close (M-c/M-v in my case). Here's an excerpt from my .bbkeysrc:

    KeyToGrab(c), WithModifier(Mod1), WithAction(ExecCommand), DoThis(~/bin/xcopy)
    KeyToGrab(v), WithModifier(Mod1), WithAction(ExecCommand), DoThis(~/bin/xpaste)

    Now alt-c copies highlighted text to the clipboard. Then alt-v copies the clipboard to the primary selection (so middle click them pastes it).

    Note that many programs that support C-c/C-v use X's clipboard selection. That means you can hit C-c in say firefox, them hit C-v, then middle click into an xterm and get the text you copied from firefox.

    Hope this helps.

    --
    "It is better to die on one's feet than to live on one's knees." - Albert Camus
  77. the "universal standard" still works by HtR · · Score: 2, Informative

    Generally speaking, these still work. I got used to them and still use them regularly today in virtually all Windows applications.

    By the way, Cut is Shift-Delete

    --
    Have you tried turning it off and on again?
  78. Re:Pasting urls - use Ctrl-L in Mozilla by RzUpAnmsCwrds · · Score: 3, Interesting

    Sidenote: in Internet Explorer, CTRL+L brings up the "Open Page" dialog and gives focus to the URL field. You can paste in a URL and press enter.

    So this trick is cross browser.

    Also, AlT+D in IE does the same thing as CTRL+L in Mozilla.

  79. Use xclip and a hotkey! by pkeck · · Score: 2, Insightful

    I have my F5 key defined to this:

    xclip -o | xargs -iMYCLIP firefox \
    -remote "openURL(MYCLIP,new-window)"

    Pops up a new window with the selected URL. If you select a whole bunch of URLs, it opens them all in different windows.

  80. Sad really... by daveman_1 · · Score: 2, Insightful

    If there is one thing I have to explain to every person who attempts to use one of my linux machines, it is how to copy and paste. Unfortunately, this is something that has never really worked in a uniform manner for as long as I've been using linux. Some applications won't let you highlight. Some applications will allow you to highlight, but contain no context menu that allows you to copy. Some applications will permit CTRL-C, but not a context menu. Yet other applications, if you are really clever and continue to HOLD your highlighted text with your left mouse button still depressed, you can do a quick CTRL-C with the other hand. But be careful about closing that application you just had open when you highlighted and copied that text. You might have just lost your "clipboard" contents if you did close it... Then there is pasting. The whole gamut of problems which plague copying also apply to pasting. Some applications simply don't know how to accept pasted information. Others will allow you to paste, but you have to figure out their preferred method -- CTRL-V OR right-click, or perhaps they only let you do it from the "edit" menu.

    In all the time I've been using linux applications, this problem has existed. It has gotten better with time, as more standard toolkits are used to develop applications, but the underlying problem is still there and is an absolute CERTAIN stumbling block for new users. They ALWAYS have trouble with the clipboard and quite frankly, don't have the patience many times to try and work around it.

    And just to stoke the flames a bit, the clipboard ALWAYS works in Windows and it ALWAYS works exactly the same way and it isn't dependent on any single application being open to store the clipboard data. Such simple things that Windows users do all day every day, such as copying the contents of a word document into notepad to kill all formatting, then copying it back into say a web editor is a task that is typically awkward to attempt in linux applications. And the damn clipboard has worked perfectly in Windows since Windows '95.

    WHY can't the clipboard problem be fixed? Why hasn't the clipboard problem been fixed by now? Good grief, I know I am not the only person who has this problem on an HOURLY basis when trying to get ACTUAL work done. There needs to be ONE clipboard mechanism that is useable UNIVERSALLY by all applications. It is such an important thing to get right because it affects so much. And the old highlight it and it is copied crap is just that. It needs to die. That is too much to assume about the user's intention in making a highlight.

    Ok, that feels better to get that off my chest. :-) Anyone have any real solutions to this problem? Solutions that ALL applications can agree on? Probably not, else we would have one by now...

    --
    Russian Russian Russian RussianDollSig DollSig DollSig DollSig
  81. Re:why have a number? by LionMan · · Score: 2, Insightful

    This goes in the spirit of not having hard limits, which is generally a good programming philosophy.
    Generally, there are only 3 cases: 0 items, meaning a restriction, 1 item, like the normal clipboard, or an infinite (until memory runs out) number of items. This is a good philosophy to work by, unless you have a standard (which you assume won't get broken). People making fixed size buffers are what get people into buffer-overflow attack problems.

    --
    -Leo
  82. Re:Pasting urls - use Ctrl-L in Mozilla by Talthane · · Score: 2, Informative

    Cmd-L works in Safari too (as you might expect, since it and Konqueror are practically identical at times).

    --
    "This is why men never share their feelings; because women always remember." -Just Shoot Me.
  83. Here's another feature I'd miss by PhilHibbs · · Score: 2, Interesting

    ...if I switched to *nix.

    I write a lot of short perl scripts that read the clipboard, transform it, and then write it back. De-duplicating lines, converting each line to an entry in a comma-separated list, tr/-_/_-/, translate characters to HTML entities (< to &lt; for instance - there, I just used that one!), wrap the text in <blockquote><i> </i></blockquote> (there - I just used them both!)

    In addition, I have them bound to bucky combinations - Ctrl-Shift-Q for blcokquote, Ctrtl-shift-[-] for the -_ swap, thing, etc.

    I don't know if this is possible on a *nix desktop, but I can't see a unified *nix clipboard module for perl.

  84. my notes by pixelbeat · · Score: 2, Informative

    X' clipboard confused my when I started so I made these notes:

    X has 2 clipboards. There is a selection buffer which is updated
    automatically when you select any text. You can paste from this
    buffer by clicking the middle mouse button.
    Then there is the clipboard (which can be managed using
    the xclipboard utility), which works like the windows equivalent
    (Ctrl+Insert or Ctrl+c for copy, and Shift+Insert or Ctrl+v for paste)
    Note gnome-terminal uses Shift+Ctrl+c and Shift+Ctrl+v instead.
    Note when you copy something in an X application
    and you close it, the content of the clipboard and selection
    buffer is lost (unless you use an external app to manage the
    clipboard (like xclipboard)).

  85. Just FIY by Sunnan · · Score: 2

    If it's not an URI, Firefox will try to load Google's lucky-hit for that string.