If you want to:
- add Unix-key word operations
- add
option-b
andoption-f
to move by word - add
option-del
andoption-backspace
to delete by word - add your own custom keys to iTerms
then please read on.
- Open iTerm2's Preferences
- Switch to
Profiles
tab - Select your profile on the left and switch to tab
Keys
on the right - Add your custom keys by click on
+
button - Focus on input
Keyboard Shortcut
in the new dialog and press the target key - Select action
Send Hex Code
orSend Escape Sequence
- Add the hex code
For the most common Hex Code:
- Move backward:
Send Escape Sequence
+b
- Move forward:
Send Escape Sequence
+f
- Backspace word:
0x1b 0x08
- Delete word(forward):
Send Escape Sequence
+d
Here is the Full ASCII Table