Is there a way to select text in iTerm OSX using keyboard?

link|improve this question

53% accept rate
feedback

1 Answer

up vote 3 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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