⌘
command⌥
option/alt←
left arrow→
right arrow
- Open iTerm
- Open Preferences with
⌘ ,
- Click on the Keys tab
- Click on the + button at the bottom of the window below the table to add a new key binding
- Click on the 'Click to Set' box to record the keys you want to bind
- Add the following:
Keyboard Shortcut: ⌘ delete
Action: Send Hex Code
Argument: 0x15
Keyboard Shortcut: ⌥ delete
Action: Send Hex Code
Argument: 0x17
Keyboard Shortcut: ⌥ ←
Action: Send Escape Sequence
Argument: b
Keyboard Shortcut: ⌥ →
Action: Send Escape Sequence
Argument: f
Keyboard Shortcut: ⌘ ←
Action: Send Hex Code
Argument: 0x01
Keyboard Shortcut: ⌘ →
Action: Send Hex Code
Argument: 0x05
Um, HELL YEAH. I don't know if this just didn't exist when I originally found out how to do this (late 2016, though I obviously didn't make this gist until way later) or if I just didn't know this existed. Thanks, Noa!