# Dock Peek

> Dock Peek shows previews of an app's windows when you hover its Dock icon, like taskbar previews on Windows.

- Canonical URL: https://getedith.pro/docs/cli/dock-peek
- Updated: 2026-12-02

Dock Peek shows previews of an app's windows when you hover its Dock icon,
like taskbar previews on Windows. Every window on every Space and display is
listed, minimised windows are marked, and each preview can focus, close,
minimise, snap or move its window.

Turn it on with the Dock previews toggle, or:

```bash
ed extensions enable dockPeek
ed invoke dockPeek dockPeek.enable
```

Accessibility is required to watch the Dock and arrange windows. Screen
Recording is optional: without it the panel shows titles instead of previews,
and macOS asks you to reopen Edith after you allow it. Previews are captured
only while the panel is open and never leave the Mac.

## Operations

Every operation takes a JSON object and prints JSON. Errors print a readable
message on stderr and exit non-zero. Window ids look like `w1234` and come
from `dockPeek.windows` or `dockPeek.show`.

| Operation | Input | Result |
| --- | --- | --- |
| `dockPeek.status` | `{}` | Whether it is on, watching the Dock, the permissions, why it is hidden (`fullScreen` or `presenting`), the open panel and the settings |
| `dockPeek.apps` | `{}` | Running apps with a Dock icon: `name`, `bundleID`, `processIDs` |
| `dockPeek.windows` | `{"app":"Notes"}` | The app's windows in panel order: visible windows front to back, then hidden, other Spaces and minimised |
| `dockPeek.show` | `{"app":"com.apple.Notes"}` | Opens the panel at the Dock edge as if you hovered the icon |
| `dockPeek.hide` | `{}` | Closes the panel |
| `dockPeek.focus` | `{"id":"w1234"}` | Brings the window forward, switching Space and restoring it if minimised |
| `dockPeek.close` | `{"id":"w1234"}` | Presses the window's close button |
| `dockPeek.minimize` | `{"id":"w1234"}` | Minimises the window, or restores a minimised one |
| `dockPeek.move` | `{"id":"w1234","display":2}` | Moves the window to the next display, or the display id given, keeping its relative position |
| `dockPeek.snap` | `{"id":"w1234","side":"left"}` | Fills the left or right half of the window's display |
| `dockPeek.enable` | `{}` | Turns Dock Peek on and asks for any missing permission |
| `dockPeek.disable` | `{}` | Turns Dock Peek off |
| `dockPeek.permission` | `{"permission":"screenRecording"}` | Asks macOS for `accessibility` or `screenRecording` |

`app` matches an app's name, bundle identifier or process id exactly.

```bash
ed invoke dockPeek dockPeek.windows --json '{"app":"Notes"}'
ed invoke dockPeek dockPeek.snap --json '{"id":"w1234","side":"right"}'
```

Windows on another Space can be focused, but closing, minimising, snapping and
moving need the window on the current Space, because macOS gives no access to
windows on other Spaces until you switch to them. Focus the window first.

## Settings

| Key | Default | Meaning |
| --- | --- | --- |
| `dockPeekDelay` | `400` | Milliseconds the pointer rests on an icon before previews appear, 0 to 2000 |
| `dockPeekSize` | `medium` | `small`, `medium` or `large` previews |
| `dockPeekLivePreviews` | `true` | Keep previews live while the panel is open |
| `dockPeekIncludeMinimized` | `true` | Show minimised windows |
| `dockPeekSpaces` | `all` | `all` Spaces or the `current` one |
| `dockPeekDisplays` | `all` | `all` displays or the `current` one, whose Dock you hover |
| `dockPeekHideInFullScreen` | `true` | Stay hidden while a full-screen app is in front |
| `dockPeekHideWhilePresenting` | `true` | Stay hidden while Presenter privacy is on |

```bash
ed config set dockPeekDelay 250
ed config set dockPeekSize large
```

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
