Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select text in iterm with Shift+Arrow?

On most mac applications Shift+Arrow selects text but in iterm it just moves the cursor without selecting. How do you get it to select the text?

Would also be curious if there's a way to do this in terminal.app, too.

like image 388
truth1ness Avatar asked May 05 '15 14:05

truth1ness


People also ask

How do you select text in iTerm?

To select text without using the mouse, press cmd-f to open the find field. Enter the beginning of the text you wish to copy and the find feature will select it in your window. Then press tab and the end of the selection will advance by a word. To move the beginning of the selection to the left, press shift-tab.


1 Answers

Follow the directions in this superuser answer which describes using the iTerm custom key bindings to map + + to select by word. Its smart to make new key mappings in a profile to test it out, rather than the main keys preference.

Suggested keybindings

iTerm: Preferences > Profiles > Keys

Click + to add a keybinding, Click to Set

+ | Action: Move start of selection back > Move by character

+ | Action: Move end of selection forward > Move by character

+ + | Action: Move start of selection back > Move by word

+ + | Action: Move end of selection forward > Move by word


your ⌘ C or ⌘ V will work to copy/paste these selections

like image 113
Merlin Avatar answered Sep 19 '22 18:09

Merlin