Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've been searching for a while on this one and the only answers I can dig up are "use X11"...so I thought I would bring it to the experts. Is there a way to configure mouse gestures/actions in the OS X Terminal app such that single-clicking on text copies the text to the clipboard?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

I'm not aware of a way to do it with the built-in Terminal app, but this is a feature that some terminal replacement apps, like iTerm 2, support.

share|improve this answer
1  
Nice drop shadow ;) –  stuffe Mar 20 '12 at 15:39
    
It's standard OS X screenshot stuff. I know the screenshot doesn't really do anything, but the post looked a little short/bland. –  Kyle Cronin Mar 20 '12 at 15:40
2  
The screenshot really sold me on this answer –  jaberg Mar 20 '12 at 15:45
add comment

Yes, but not with an unmodified left click. If you want to remap the middle or right mouse buttons to copy text, you can do this with a combination of BetterTouchTool and Automator.

The automator part:

Create a service that accepts text as input.

Single action: Do shell script. The shell script is /usr/bin/pbcopy

enter image description here

Save the action. Use System Preferences to assign an obscure keyboard shortcut to the action.

Then, in BetterTouchTool, remap the center mouse button to the keystroke that triggers your action.

That's the short version. For an expanded version with screenshots and more detailed instructions, come back later tonight, but I'm at work now and only have a Windows PC.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.