#

## unexpand

Unexpand everything inside or touching the cursor box.

### Usage:

> unexpand [selection|surround|overlap|all]

### Shortcuts:

> Key macro X implements the command unexpand.

### Summary:

> The unexpand command unexpands the view of subcells to hide the contents of the subcells and show the bounding box outline only. Option overlap unexpands all expanded subcells that overlap with the cursor box in the layout window.

> Option surround unexpands all expanded subcells that are completely surrounded by the cursor box in the layout window.

> Option all unexpands all subcells in the layout window.

> Option selection operates on the current selection, not relative to the cursor box, unexpanding all selected cells.

> With no arguments, the unexpand command behaves like unexpand surround, for backwards-compatible behavior with earlier versions of magic which did not offer the options.

### Implementation Notes:

> unexpand is implemented as a built-in magic command.

### See Also:

> expand

Return to command index

Last updated: March 7, 2020 at 1:06pm