Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to set cmd + click to select a full word in textmate?

share|improve this question
    
A double-click selects a full word in TextMate, and triple-click selects a whole line. That should suit your needs, right? –  ghoppe Jul 15 '10 at 17:38
    
I am fairly new to the mac and am trying to get some of my hard-wired habits from windows' editplus working on textmate. Is there a way to do a global macro where cmd + click simulates a double click? –  phirschybar Jul 16 '10 at 15:56
    
I suggest diving in to learn the Mac behavior, instead of perpetuating old habits using workarounds that could break in the future. –  Daniel Beck Jan 10 '11 at 7:46

1 Answer 1

There is no easy way to do it in TextMate, since mouse events cannot be set to invoke a command. Besides, as far as I know, you cannot select text via command. So the only possibility would be to write an extension for TextMate, which is much more complex than writing snippets and commands.

However, I'm sure you can get it working system wide, because it is possible to customize the cocoa text areas (basically most applications use them, thus your changes are reflected nearly everywhere). For example, it's possible to give those text areas an vim-like behaviour with different modes. Sadly I can't find a helping link right know, maybe someone else has a good resource for adjusting cocoa text areas?

share|improve this answer

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.