# ed scratchpad export

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

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

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

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

```bash
ed scratchpad export NOTE --to PATH [--format md|txt] [--overwrite] [--json]
```

Saves a note as a file. `md`, the default, writes the Markdown as it is. `txt` writes plain text: heading, emphasis and code marks are removed, list items keep their `-` and task boxes, and links become `text (address)`. `--to` takes a folder, where the file is named after the note and given a free name such as `Groceries 2.md` when one exists, or a file path relative to the current folder. An existing file is kept unless `--overwrite` is given. JSON output reports `id`, `format` and `path`.

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