This is probably related to this question:
How do I do Home and End in iterm2?
but fiddling with the iTerm2 key mappings (both general and per-profile) to un-map option plus the left and right arrow keys still doesn't work right for me with zsh command line actions.
With Terminal.app, those option + arrow combinations go back and forward on the command line by word (space-separated blob basically).
I'd love to be able to do that with iTerm2, but despite my having asked for the mappings for the combinations to be removed they still don't work.
Ironically the main reason I installed iTerm2 was to be able to disable the (to me) insane behavior of command-p (print), which had wasted a bunch of my printer paper.
When I bring up Terminal.app, those key combinations work properly, so I think my zsh setup is correct.
Terminal.app
is because of that shortcut, override it with something else you'll never type.System Preferences >> Keyboard >> Shortcuts >> App Shortcuts
, and add a shortcut forTerminal.app
named "Print..."Terminal.app
reflects what I override the shortcut with. Your menu text has to match EXACTLY, so sinceTerminal.app
has "Print..." (Print-dot-dot-dot) , you need to have "Print..." in the shortcut."Print..."
and re-typed it.