User guide / Panes

Keyboard resize preview

Development reference · View source

:resize briefly fades pane contents away and replaces them with a labelled layout preview. The active pane has a tinted background and its selected edge has a bright handle. The status line lists the controls; the interaction line keeps Apply and Cancel visible.

  • Tab / Shift-Tab cycles clockwise / counterclockwise through movable edges, initially choosing the right edge when available.
  • h/l or Left/Right moves a vertical edge one column; k/j or Up/Down moves a horizontal edge one row. Directions move the edge literally: moving a left edge right shrinks the active pane. Perpendicular keys leave it unchanged.
  • H/J/K/L or Shift+arrows extends the active pane in that direction to the nearest valid neighbouring far edge, using the same rules as Shift-Alt-drag. Every affected pane is previewed. Covered or fragmented pane views disappear; their buffers, unsaved edits and terminal sessions survive acceptance.
  • u undoes a preview change, including an extension (up to 256 changes).
  • Enter applies the complete draft. Esc discards it.

The directory tree’s right edge, also reachable from an adjacent pane’s left edge, can be resized but cannot be absorbed by an extension. Fullscreen and Zen must be left before resizing. A changed screen size, underlying layout or frontend attachment cancels the draft. Terminal processes retain their actual sizes throughout the preview and receive the new sizes only after acceptance. Mouse input and pasted text do not edit anything while this mode owns input.

The former :resize-left, :resize-right, :resize-top and :resize-bottom commands have been replaced by :resize.