> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/squash/quick-guide/keyboard-shortcuts.md).

# Keyboard Shortcuts

Use these shortcuts to import, preview, compress and export images in Squash 4.

| Shortcut                       | Action                                                          |
| ------------------------------ | --------------------------------------------------------------- |
| Command-O                      | Import Images…                                                  |
| Option while importing         | Reverse the Replace previous images preference for that import. |
| Command-Z after a Replace drop | Undo the replace and restore the previous batch.                |
| Command-S                      | Squash: calculate compressed sizes for the batch.               |
| Command-E                      | Export All Images.                                              |
| Command-Shift-E                | Export Selected Image As…                                       |
| Delete                         | Remove the selected images from the batch.                      |
| Command-Delete                 | Remove All Images, after confirming.                            |
| Command-A                      | Select all images when the image list has focus.                |
| Return                         | In a sidebar text field, commit the edit.                       |
| Command-+ or Command-=         | Zoom in on the preview.                                         |
| Command-Minus                  | Zoom out of the preview.                                        |
| Command-0                      | Show the preview at actual size.                                |
| Command-9                      | Zoom the preview to fit.                                        |
| Option-scroll                  | Zoom the preview around the pointer.                            |
| Option-click the rotate button | Rotate the image right instead of left.                         |
| Space-drag                     | Pan the zoomed preview.                                         |
| Arrow keys                     | Move to the previous or next image when the list has focus.     |
| Shift-arrow                    | Extend the image selection.                                     |
| Command-Shift-C                | Copy Original.                                                  |
| Command-Option-C               | Copy Squashed.                                                  |
| Command-,                      | Open Settings.                                                  |

On macOS versions that show **Add Images…** or **Replace Images…** as a separate File menu item, **Command-Option-O** performs that alternate import. On newer versions, hold Option to reveal the alternate Import command.

Copy and export commands act on the current image or whole batch as indicated by their menu labels. Selecting several images does not change **Command-E** into a selected-images-only export.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmacsoftware.com/squash/quick-guide/keyboard-shortcuts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
