# ed scratchpad undo

> ed scratchpad undo in the Edith ed command line reference. ed scratchpad

- Canonical URL: https://getedith.pro/docs/cli/scratchpad/undo
- Updated: 2026-12-02

[`ed scratchpad`](https://getedith.pro/docs/cli/scratchpad)

[The `ed` command line](https://getedith.pro/docs/cli)

```bash
ed scratchpad undo [--json]
```

Restores the most recently deleted note at the position it had, inside the pinned tabs if it was pinned, and selects it. Fails when there is nothing to restore.

## 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
