Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 266
chris Avatar asked Jun 01 '11 17:06

chris


People also ask

How do you skip to the beginning of the current line?

Keystroke shortcutsPressing Home moves the insertion point to the beginning of the current line. Pressing Ctrl+Home moves it to the beginning of the document.

How do you jump to the End of a line of text?

“Ctrl” + “Shift” + “<” (Smaller)


1 Answers

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

like image 94
Matthias Avatar answered Sep 28 '22 09:09

Matthias