# Use clipboard history and text snippets

> Use clipboard history on your Mac with Edith: search past copies, pin favorites, edit text in the scratch buffer, and expand snippet keywords as you type.

- Canonical URL: https://getedith.pro/docs/tutorials/clipboard-history-and-snippets
- Updated: 2026-12-03

When you finish, everything you copy is searchable one shortcut away, the items you reuse are pinned, you can tidy copied text in a scratch buffer, and short keywords expand into full snippets in any app. You need Edith installed. The guide [How to see clipboard history on a Mac](https://getedith.pro/guides/see-clipboard-history-mac) compares the built-in options.

## Install Clipboard

[Clipboard](https://getedith.pro/docs/extensions/clipboard-manager) is a starter tool in both profiles, so it may already be in your sidebar. If not:

1. Open **Library** in the sidebar.
2. Type `Clipboard` in **Search tools**, or look under **Productivity**.
3. Press **Install**.

Then copy as usual. Edith records each copy of text, links, images and files in the background. History stays on this Mac, and password managers are ignored by default.

### From the terminal

```terminal
$ ed extensions install clipboard
```

## Open your history

Press `⌃⇧C` in any app. The history popup opens with pinned items at the top and today's copies below, each with the app it came from and when.

![The clipboard history popup over a desktop, with a search field, All, Text, Links, Emails, Colors and Images filters, two pinned items, and today's copies including a color, a link, an email address and a PNG image](shot:ext-clipboard)

- Type to search.
- Use the up and down arrows to move, and left and right to switch between filters such as Links or Images.
- Press Return to copy the item back.

To change the shortcut, open **Clipboard** in the sidebar and set it in the first row of the page.

### Paste straight into your app

On the Clipboard page, turn on **Paste for me** under **Pasting**. Picking an item then pastes it into the app you were using. This needs Accessibility: if the page shows **Accessibility is needed**, press **Allow access**. Until you allow it, picking an item only copies it.

**Paste as plain text** in the same section removes fonts, colors and links.

## Pin what you reuse

Press `⌘P` on an item in the popup to pin it. Pinned items stay at the top and never age out. Press `⌘P` again to unpin it.

To work through everything at once, open **Clipboard** in the sidebar and press **Browse all** next to **Full history**. You can search, pin and delete any item there.

### From the terminal

Items are numbered the way the popup shows them, pinned first:

```terminal
$ ed clipboard ls --limit 4
#  KIND          SIZE       FROM     PREVIEW
2  png           1.2 MB     Preview  PNG image
3  html          8 KB       Safari   Edith keeps a history of everything you copy
4  txt           142 bytes  Xcode    func render(headers: [String]) -> String
$ ed clipboard pin 3
pinned entry 3
$ ed clipboard copy 4
copied entry 4
```

`copy` puts an item back on the pasteboard, the same as picking it in the popup. `ed clipboard get <n>` prints a text item on stdout so you can pipe it. Numbers shift whenever you copy something new, so in a script read `id` from `ed clipboard ls --json` instead.

## Edit copied text in the scratch buffer

The scratch buffer is a floating text editor with line numbers and highlighting. Open it in any of these ways:

- Press `⌃⌥⌘B` in any app.
- Press `⌘E` on a text item in the history popup to edit that item.
- On the Clipboard page, press **Open scratch buffer** under **Scratch buffer**.

Edit the text, then press **Copy** (`⌘Return`) to put it on the clipboard, or **Save…** (`⌘S`) to save it to a file. Nothing reaches the pasteboard until you ask.

The text is kept after Edith relaunches. To start empty each time, turn off **Keep scratch text after relaunch** under **Scratch buffer** on the Clipboard page.

From the terminal, `ed clipboard scratch load 1` loads an item into the buffer and `ed clipboard scratch open` shows it. See [`ed clipboard scratch`](https://getedith.pro/docs/cli/clipboard/scratch).

## Choose what Clipboard keeps

Open **Clipboard** in the sidebar. Its page holds every setting:

- **Recording**: **Pause recording**, **Keep text and links**, **Keep images**, **Keep files**, **Skip likely passwords and keys** and **Ignored apps**.
- **History**: **Items to keep**, **Largest item** and **Delete old items**. Pinned items are always kept.

To forget items, open the history popup's options menu and choose **Clear unpinned…**, or delete single items from **Browse all**. Removal is permanent.

### From the terminal

The same settings are config keys, such as `clipboardMaxItems`, `clipboardMaxAgeDays`, `clipboardRefuseSecrets` and `clipboardCapturePaused`:

```terminal
$ ed config set clipboardRefuseSecrets true
$ ed clipboard clear --keep-pinned --yes
cleared 1214 entries
```

Without `--yes`, `ed clipboard clear` and `ed clipboard rm` only preview.

## Save text snippets in Bifrost

Snippets are text you type often, such as an address or a sign-off. They live in [Bifrost](https://getedith.pro/docs/extensions/launcher), Edith's launcher.

1. Open **Bifrost** in the sidebar and find the **Snippets** section.
2. Press **Add snippet**, then fill in **Name**, **Text** and, if you want Longhand to expand it, **Keyword**.
3. To bring snippets from Raycast, press **Import JSON…** and pick a Raycast Snippets export. **Import JSON…** and **Export JSON…** appear only with the Developer profile, set in **Settings > General > Profile**.

Press `⌥Space` and type part of a snippet's name. Press Return to paste it into the app you were typing in.

![The Bifrost launcher bar with the search "mai", showing Mail and other apps, a Mailing address snippet with its text, and window management actions](shot:ext-bifrost)

**Paste snippets for me** in the same section types the snippet into your app. It needs Accessibility. Without it, a snippet is copied to the clipboard instead.

## Expand snippets as you type with Longhand

[Longhand](https://getedith.pro/docs/extensions/text-expander) turns a snippet's keyword into its text as you type, in any app.

1. Install **Longhand** from **Library**.
2. Open **Longhand** in the sidebar and turn on **Expand keywords** at the top of the page.
3. If the page asks, press **Allow Input Monitoring** and **Allow Accessibility**. Longhand needs both.

The **Keywords** list shows every Bifrost snippet that has a keyword. Type a keyword followed by a space or punctuation and it becomes the snippet. Keywords never expand in password fields, while secure input is on, or in password managers. To keep an app out, press **Exclude an app** on the Longhand page.

If you used Espanso, press **Import from Espanso** on the Longhand page and pick your match files. Edith shows what it will import before it changes anything.

### From the terminal

```terminal
$ ed longhand on
$ ed longhand status
expanding 12 keywords
$ ed longhand import ~/Library/Application\ Support/espanso/match --dry-run
```

`ed longhand off` pauses expansion.

## Next steps

- [`ed clipboard`](https://getedith.pro/docs/cli/clipboard) and [`ed clipboard scratch`](https://getedith.pro/docs/cli/clipboard/scratch) reference.
- [`ed longhand`](https://getedith.pro/docs/cli/longhand) and [`ed bifrost`](https://getedith.pro/docs/cli/bifrost) reference.
- [Hotkeys](https://getedith.pro/docs/hotkeys) for every default shortcut.
- [Move settings to another Mac](https://getedith.pro/docs/tutorials/move-settings-to-another-mac) to take your clipboard settings with you.

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