I stumbled across the CMD-D hot key which splits the Terminal into 2 panes. But I can't find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. What are the other commands?
-
Related to apple.stackexchange.com/questions/6504/…, but the keyboard shortcut isn't mentioned there.nohillside– nohillside ♦2013-03-29 14:53:57 +00:00Commented Mar 29, 2013 at 14:53
-
See also How do I disable Cmd-D in Terminal?.sds– sds2017-03-28 14:35:34 +00:00Commented Mar 28, 2017 at 14:35
3 Answers
The idea behind splitting is that it allows you to keep a certain part of the shell buffer displayed while continuing to enter new commands. So only the lowest split does allow keyboard input. To position the view on the shell buffer use the scroll bar.
You can un-split by pressing Shift-Cmd-D.
-
1That's partially wrong - "only the lowest split does allow keyboard input". Nope, if upper panel has focus (e.g. by mouse click) it accepts many hotkeys like ⌘+Up/Down, but not text-input. That's important.Alex Koz.– Alex Koz.2025-06-15 20:10:31 +00:00Commented Jun 15 at 20:10
Like the top answer says, to undo the split is ⌘ Shift ⌘Command D.
I just wanted to add that in general OS-X shortcuts that are done with ⌘ Command-char are undone (or the opposite/complement command is executed) with ⌘ Command ⌘ Shift-char.
-
1I'm not going to vote to close - whilst it's not really an answer, it does add a useful snippet of information.Tetsujin– Tetsujin2016-08-22 18:22:07 +00:00Commented Aug 22, 2016 at 18:22
In the most current version of Iterm2, navigate to Preferences > Profiles > Keys.
Select the + sign and add new key shortcut. Then scroll to the bottom and select Send Escape Sequence. Do this twice and after you select escape sequence simply put a b in the text box for left and an f for right.
More information found here: