Thursday, November 18, 2021

[SOLVED] How to set keyboard shortcuts to jump to beginning/end of line?

Issue

I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?


Solution

Add in iTerm2 the following Profile Shortcut Keys

FOR ACTION SEND
⌘ ← "SEND HEX CODE" 0x01
⌘ → "SEND HEX CODE" 0x05
⌥ ← "SEND ESC SEQ" b
⌥ → "SEND ESC SEQ" f

Here is a visual for those who need it

iTerm add key visual



Answered By - Matthias