Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Use X11-style cut and paste in Terminal Apps
Just a short tip, maybe some you have already figured this out by accident, I know I did. X11-type cut and paste now works in the terminal. On a three-button mouse, right click to mark text, then middle-click to paste. No need to do command-c and command-v to cut and paste (it still works though).

[robg adds: With my re-programmed mouse, I can't seem to force it back to default mode for Terminal, so I can't test this one ... so if someone could confirm this, please post your experiences in the coomments.]
    •    
  • Currently 2.89 / 5
  You rated: 3 / 5 (9 votes cast)
 
[20,382 views]  

10.3: Use X11-style cut and paste in Terminal | 10 comments | Create New Account
Click here to return to the '10.3: Use X11-style cut and paste in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Use X11-style cut and paste in Terminal
Authored by: slowco on Oct 30, '03 11:14:19AM

Anyone know if this works in other apps?



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: sabi on Oct 30, '03 11:20:47AM
On a three-button mouse, right click to mark text...

Not exactly. Middle-clicking will paste whatever text you have selected in Terminal. It doesn't use the system clipboard at all - good, as I hate the way the X equivalent can get overwritten with any arbitrary selection.

[ # ]

10.3: Use X11-style cut and paste in Terminal
Authored by: kal on Oct 30, '03 12:02:40PM

As the original poster, this hint was a bit sloppy on my part ... It should ofcourse read "left-click". I also noted later on that it only works in the same terminal. No cut and paste between different terminals...



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: zacht on Oct 30, '03 12:08:28PM

Works for me. Nice tip!

zach



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: wgscott on Oct 30, '03 01:46:55PM

Iterm does this as well (v. 0.7.7) but it also allows you to cut and paste between different iterms, as well as two and from X-windows applications and OS X applications.



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: brainsik on Oct 30, '03 02:45:25PM

People should also try out 'screen' (unix app that comes with OS X) to have multiple virtual terminals inside a single Terminal.app. I've gotten by with having only a single Terminal.app open.

If iTerm supported clicking on URLs, I'd probably use it instead (and it would be one step closer to replacing my beloved multi-gnome-terminal X11 app). URL clicking is a necessary feature for me.



[ # ]
thanks for "screen"
Authored by: nwfrg on Oct 31, '03 08:47:10AM
OMG This is so great! Thanks for alerting me to the command line utility screen. I can tell it's going to be a big help to me. For those who would like to have multiple terminal session without opening multipe terminal.app windows type man screen in terminal and learn about screen.

[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: bucweat on Oct 30, '03 08:09:03PM

If you bring up the contextual menu in a Terminal, you'll see that you can paste the current selection using shift-command-v.



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: oink on Oct 30, '03 10:28:48PM

I have a reprogrammed mouse. Middle button is already assigned to click-lock globally. I will need to figure out how to enabled the default action in Terminal...

Also while messing around, drag and drop works too!

Select something drag and let go immediately, the selected text get pasted on the current command line. Sweet!



[ # ]
10.3: Use X11-style cut and paste in Terminal
Authored by: Euklid on Mar 30, '06 12:39:47AM
I love this one! Does anyone know how to patch OS X to have this feature work with all OS X applications?

I love the Mac but still hate the Command-C Command-V style of cutting and pasting. Especially on the Mac (where you use the mouse often and you now even have Mighty Mouses) this would be a great benefit.

[ # ]