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 1.6k times
25
Benjamin Crouzier
- 5,818
- 11
- 33
- 44
2 Answers
40
- 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
- 7
Benjamin Crouzier
- 5,818
- 11
- 33
- 44
-
2You can also set up Option+arrow keys to jump words by setting up `Option + left arrow` to `escape sequence` and key `b`, and `Option + right arrow` to `escape sequence` and key `f`. – Jamon Holmgren Sep 22 '13 at 23:33
-
@JamonHolmgren - I can't see `escape sequence` in the menu, the menu is huge! which sub-section is it in? – Toni Leigh Oct 19 '15 at 11:39
-
@ToniLeigh Just scan down until you start seeing "Send..." items. It's in there. – Jamon Holmgren Nov 12 '15 at 00:16
-
Here's a link to a screenshot: https://cloud.githubusercontent.com/assets/1479215/11107105/5362a8b6-888f-11e5-913d-f5dac0a318ca.png – Jamon Holmgren Nov 12 '15 at 00:18
-
I think this should be included as a default keybinding. – Prince Odame Dec 04 '20 at 07:53
10
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
- 221
- 2
- 6
-
1Works like a charm! Thank you. No need to mess around with the low-level settings. – focused Jul 02 '23 at 12:37
