134

Is there a way to temporarily expand a split pane into full tab and go back again when done? I am looking for a keyboard shortcut to do so. The use case is to be able to temporarily switch to full-screen on demand.

Flip
  • 6,233
  • 7
  • 46
  • 75
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106

5 Answers5

267

To maximize your active panel, just Cmd + Shift + Enter on the screen you want to expand.

thefourtheye
  • 233,700
  • 52
  • 457
  • 497
rizidoro
  • 13,073
  • 18
  • 59
  • 86
  • 5
    could I change combination of those keys? – alper Nov 05 '16 at 12:56
  • 9
    @Alper Go to Preferences > Keys > Action > Select Menu Item > View > Maximize Active Pane and enter a custom shortcut. – Qaz Dec 14 '17 at 00:13
  • 13
    Maybe things have changed. iTerm2 - 3.2.8 I had to the following for customization Preferences > Keys > '+' (to add a new action) > Under Action select 'Select Menu Item' > Under view you should see 'Maximize active pane' .. So basically "Select Menu item" is the Menu items displayed for iTerm and you can customize any of those . – Ashwin Apr 15 '19 at 10:37
  • This. Changes. Everything. – jessepinho May 11 '21 at 14:33
  • Thanks @Ashwin, this saved me a lot of searching! – miguno Apr 06 '22 at 10:15
6

You can maximise and minimise your current panel by using Cmd + Shift + Enter

There are a lot of hot keys to remember and when starting out it can be helpful to print out a cheat sheet or to scan the documentation with find in your browser.

Cookie
  • 558
  • 8
  • 24
5

For me, I cannot find menu section Preferences > Keys > Action > Select Menu Item > View > Maximize Active Pane

My workaround is right clicking on the pane, and select Move Session to Window and maximize that window.

We can then Move Session to Pane to move it back.

Nam G VU
  • 33,193
  • 69
  • 233
  • 372
  • 1
    Its not that easy to find. `Select Menu Item` is an entry in the combobox which reveals an additional combobox on activation. – ManuelSchneid3r Mar 26 '19 at 16:56
  • 1
    The menu section is different in iTerm2 as of April 2022. An up-to-date answer is in comment https://stackoverflow.com/questions/13243933/iterm2-how-to-expand-split-pane-temporarily#comment98057836_16483592. – miguno Apr 06 '22 at 10:18
4
  1. To maximize the active panel with full window, just Cmd + Shift + Enter.

  2. Then toggle fullscreen with Cmd + Enter.

(This also works in iTerm2 3.4 Integrate with tmux.)

malajisi
  • 2,165
  • 1
  • 22
  • 18
0

The easiest way is to double click on the panel title, it will expand. Double click again to reduce it

Laurent
  • 119
  • 3
  • 6