Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Dealing with the Unix Copy and Paste Paradigm?

Posted by Cliff on Wed Jun 02, 2004 03:15 PM
from the it-works-well-enough-once-you-learn-how-to-use-it dept.
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?"
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Common problem.. (Score:5, Insightful)

    by SeanTobin (138474) * <byrdhuntr@hot m a i l . com> on Wednesday June 02 2004, @03:15PM (#9318505)
    ..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 ;)

    • Pasting urls (Score:5, Informative)

      by grahamsz (150076) on Wednesday June 02 2004, @03:17PM (#9318524) Homepage Journal
      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".
      • Re:Pasting urls (Score:5, Informative)

        by Martin Blank (154261) on Wednesday June 02 2004, @03:33PM (#9318754) Journal
        Firefox and Konqueror should have a button for "Open the clipboard in a new tab".

        Agreed. While not a perfect solution, Clipboard Observer [sakura.ne.jp] 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 [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.
      • by AppyPappy (64817) on Wednesday June 02 2004, @03:41PM (#9318878)
        Using a mouse in unix? That's heresy.
              • Re:Pasting urls (Score:5, Informative)

                by Anonymous Coward on Wednesday June 02 2004, @06:34PM (#9320571)
                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.

      • Re:Pasting urls (Score:5, Informative)

        by connsmythe96 (576445) <slashdot@@@adamkemp...com> on Wednesday June 02 2004, @03:42PM (#9318887) Homepage
        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... ;)

      • Re:Pasting urls (Score:5, Informative)

        by taniwha (70410) on Wednesday June 02 2004, @03:44PM (#9318927) Homepage Journal
        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
      • by Peter McC (24534) on Wednesday June 02 2004, @04:41PM (#9319620) Homepage
        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.

          • Re:Pasting urls (Score:5, Informative)

            by divirg (695027) on Wednesday June 02 2004, @03:50PM (#9319006)
            No, I'm thinking of Diggler [mozdev.org].

            "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.
            • Re:Pasting urls (Score:5, Informative)

              by lerouxt (129730) <tomNO@SPAMharborcoat.com> on Wednesday June 02 2004, @05:12PM (#9319946)
              In KDE you can configure Klipper to either "Synchronize contents of the clipboard and the selection" or "Separate clipboard and selection".

              Your choice.
              • Re:Pasting urls (Score:5, Insightful)

                by GMC-jimmy (243376) on Wednesday June 02 2004, @05:00PM (#9319837) Homepage
                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.
        • Re:Pasting urls (Score:5, Interesting)

          by pantherace (165052) on Wednesday June 02 2004, @04:18PM (#9319357)
          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.

        • Re:Pasting urls (Score:5, Informative)

          by phoenix.bam! (642635) on Wednesday June 02 2004, @06:53PM (#9320703)
          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.
    • Re:Common problem.. (Score:5, Informative)

      by GigsVT (208848) on Wednesday June 02 2004, @03:20PM (#9318561) Journal
      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.
      • Re:Common problem.. (Score:5, Informative)

        by irix (22687) on Wednesday June 02 2004, @03:57PM (#9319090) Journal

        Yeah, there's basically two clipboards.

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

        • by GrouchoMarx (153170) on Wednesday June 02 2004, @04:55PM (#9319766) Homepage
          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.
    • by Coneasfast (690509) on Wednesday June 02 2004, @03:21PM (#9318573)
      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)
    • Re:Common problem.. (Score:4, Informative)

      by nachoman (87476) on Wednesday June 02 2004, @03:21PM (#9318584)
      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.
      • Re:Common problem.. (Score:5, Informative)

        by RossyB (28685) <ross@burto[ ]i.com ['nin' in gap]> on Wednesday June 02 2004, @03:43PM (#9318907) Homepage
        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.
    • X copy/paste (Score:5, Informative)

      by Too Much Noise (755847) on Wednesday June 02 2004, @03:32PM (#9318734) Journal
      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 [freedesktop.org]
    • by ArmpitMan (741950) on Wednesday June 02 2004, @03:34PM (#9318762) Homepage
      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.

  • Your proiblem... (Score:4, Insightful)

    by nother_nix_hacker (596961) on Wednesday June 02 2004, @03:18PM (#9318529)
    ...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 :)
  • by jmdjmd (727273) on Wednesday June 02 2004, @03:18PM (#9318530)
    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 :-).
  • by Anonymous Coward on Wednesday June 02 2004, @03:19PM (#9318549)
    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!)
    • by FauxPasIII (75900) on Wednesday June 02 2004, @04:31PM (#9319515)
      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>
    • by pavon (30274) on Wednesday June 02 2004, @04:44PM (#9319654)
      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.
  • by Wesley Felter (138342) <wesley@felter.org> on Wednesday June 02 2004, @03:19PM (#9318550) Homepage
    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.
      • by roca (43122) on Wednesday June 02 2004, @03:30PM (#9318716) Homepage
        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
  • by 1000101 (584896) on Wednesday June 02 2004, @03:20PM (#9318553)
    "... performs a copy while the middle mouse button performs a paste."

    I use a Mac you insensitive clod!
    • by jpetts (208163) on Wednesday June 02 2004, @03:36PM (#9318797)
      "... 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...
  • Oh boy (Score:4, Informative)

    by John Starks (763249) on Wednesday June 02 2004, @03:21PM (#9318564)
    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. [jwz.org]
  • Complain! (Score:5, Interesting)

    by ChipMonk (711367) on Wednesday June 02 2004, @03:21PM (#9318571)
    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.
  • -1 Redundant (Score:5, Informative)

    by stratjakt (596332) on Wednesday June 02 2004, @03:21PM (#9318574) Journal
    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.

      • by smcv (529383) on Wednesday June 02 2004, @04:01PM (#9319130) Homepage
        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.
  • KDE klipper... (Score:5, Informative)

    by rsidd (6328) on Wednesday June 02 2004, @03:21PM (#9318582)
    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...

  • by JaredOfEuropa (526365) on Wednesday June 02 2004, @03:23PM (#9318614) Journal
    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?
  • by sab39 (10510) on Wednesday June 02 2004, @03:33PM (#9318752) Homepage
    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...
  • by dpbsmith (263124) on Wednesday June 02 2004, @03:38PM (#9318835) Homepage
    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.
  • by XO (250276) <{blade.eric} {at} {gmail.com}> on Wednesday June 02 2004, @03:47PM (#9318961) Homepage Journal
    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..

    • by LenE (29922) <len_evansic&mac,com> on Wednesday June 02 2004, @04:39PM (#9319603) Homepage
      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
  • by toomim (492480) on Wednesday June 02 2004, @04:02PM (#9319134)
    You should read this article: http://www.jwz.org/doc/x-cut-and-paste.html [jwz.org].

    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 [freedesktop.org].

  • by rabtech (223758) <slashdot_sez AT boneville DOT net> on Wednesday June 02 2004, @04:02PM (#9319143)
    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.)
  • But wait... (Score:5, Funny)

    by gillbates (106458) on Wednesday June 02 2004, @04:12PM (#9319250) Homepage Journal

    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...

    • by Pieroxy (222434) on Wednesday June 02 2004, @03:25PM (#9318644) Homepage
      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.
    • by deebaine (218719) on Wednesday June 02 2004, @03:35PM (#9318785) Journal
      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