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 a way to select text in iTerm OSX using keyboard?

share|improve this question

1 Answer 1

up vote 18 down vote accepted

Yes! In iTerm2, do this:

  1. Cmd-F
  2. Type some text that matches part of what you want to copy.
  3. When you have a partial match on what you want to copy, you can expand the selection. Press tab to grow it one word to the right; press shift-tab to grow it one word to the left.

As soon as you press tab or shift-tab, it is copied to the clipboard. You can press option-Enter to immediately paste the selection and close the find bar at once.

Alternatively, the autocorrect feature reduces the need for copy-paste. Just type the start of some text that is either on the screen or you have copy-pasted recently and press cmd-;. A popup window appears and you can choose from there. Autocorrect works best for a single word, though.

share|improve this answer
    
thanks. This is the only work-around I've found so far. However, I can't get it to go beyond a single line. Is that possible? –  Rob Bednark Nov 21 '12 at 15:47
1  
If you have multiple matches, press cmd-G to go to the next match. Press shift-cmd-G to go the other way. –  rednaw Aug 7 '13 at 10:22

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.