I've learned how to split my terminal windows with apple-d and apple-shift-d. Its very useful.
How do I then switch between the two panes (see below) using the keyboard?
I know I can use the mouse but would like to know if there's a key combo to do it.
Asked
Active
Viewed 5.7k times
62
Michael Durrant
- 17,396
3 Answers
106
⌘+⌥+←/↑/→/↓ will let you navigate split panes in the direction of the arrow, i.e. when using ⌘+D to split panes vertically, ⌘+⌥+← and ⌘+⌥+→ will let you switch between the panes.
Note: ⌥ is the [alt] key
Bombe
- 1,229
23
Here are some useful keyboard shortcuts for iTerm navigation:
- ⌘+← and ⌘+→ navigates among tabs.
- ⌘+[number] navigates directly to a tab.
- ⌘+⌥+[number] navigates directly to a window.
- ⌘+⌥+←/↑/→/↓ navigates among split panes.
- ⌘+] and ⌘+[ navigates among split panes in order of use.
0
I often find it easier to map Cmd+"number" to one of the panes. You can do this by pressing Cmd+, to navigate the iTerm Preferences, then go to Keys > Navigation shortcuts. In "Shortcut to choose a split pane", choose Cmd+"number". Then if you have three panes, you can navigate to each of them with Cmd+1, Cmd+2, and Cmd+3 respectively.
agarza
- 2,274
Victor Cui
- 101
⌘+→/← Will move me between tabs, but I would like to swap this with the default navigation for split panes, as I use them more frequently, and I use tabs rather infrequently.
– Erich Dec 21 '22 at 17:42