With the default settings, command + arrow_left switches to the tab on the left. How to change it so that it puts the cursor at the beginning of the line instead ?
Asked
Active
Viewed 2.2k times
32
Benjamin Crouzier
- 6,160
2 Answers
48
- Go to settings (⌘ Command+,)
- Go to tab
Keys- Under "Key Bindings"
- Change entry ⌘ Command← to Send Hex code: 0x01
- Change entry ⌘ Command→ to Send Hex code: 0x05
Roxiun
- 103
Benjamin Crouzier
- 6,160
21
I would say mapping keys manually, as shown in other answers, is an advanced setup. iterm2 already has preset for that.
Open Preferences
Click "Profile" tab
Select a profile in the list on the left (eg "Default")
Click "Keys" tab
Click "Key Mappings" tab (if it exists)
Click the "Presets" dropdown and select "Natural Text Editing"
After that, you can easily navigate in the console with the Command + Left/Right arrow.
Oleg Abrazhaev
- 331
