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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With