Select full word in iTerm2 using alt + shift + arrow

11

6

Following this advice, I've configured Iterm2 to delete the word when Alt + Backspace. I would like to build a similar functionality for combinations of Alt + Shift + | . With respect to those combinations, I would like to be able to select word behind or after the cursor and expand the selection further by pressing the | keys.

Konrad

Posted 2016-03-11T16:19:59.413

Reputation: 587

Answers

13

Go to Preferences then Keys.

Press the +.

For the Keyboard Shortcut, press Alt + Shift + |

For Alt + Shift + , choose "Move Start of Selection Back" and "Move by Word".

For Alt + Shift + , choose "Move End of Selection Forward" and "Move by Word".

Nathan Chapman

Posted 2016-03-11T16:19:59.413

Reputation: 146