# ed longhand import

> Reads Espanso match files or folders and adds each supported match to Bifrost as a snippet whose keyword is the trigger.

- Canonical URL: https://getedith.pro/docs/cli/longhand/import
- Updated: 2026-12-02

Reads Espanso match files or folders and adds each supported match to Bifrost as
a snippet whose keyword is the trigger. Dates, the clipboard, echo and choice
variables, forms and cursor hints are converted. Shell, script, random, regex,
image, rich text and nested matches are skipped and listed with the reason.
Bifrost keeps its existing snippets and skips identical ones and keywords that
are already used.

```
ed longhand import <path>... [--dry-run] [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<path>` | files or folders | required | Espanso `.yml` or `.yaml` files, or folders searched for them. Files starting with `_` are skipped. Up to 64 files of 1 MB each. |
| `--dry-run` | flag | off | Show what would be imported without changing Bifrost. |
| `--json` | flag | off | Emit JSON on stdout. |

```
$ ed longhand import ~/Library/Application\ Support/espanso/match --dry-run
14 matches would be added from 2 files
skip :ip: Snippets never run commands.
```

```
$ ed longhand import base.yml
Added 13 snippets to Bifrost. 1 was already there or its keyword is taken. 1 match could not be imported.
skip :ip: Snippets never run commands.
```

`--json` without `--dry-run` returns `added`, `found`, `alreadyInBifrost`,
`full` (matches that did not fit in Bifrost's 500 snippets), `skipped` (each
with `trigger` and `reason`) and `notes`. With `--dry-run` it returns `files`,
`snippets`, `skipped` and `notes`.

## Where to go next

- [`ed longhand ls`](https://getedith.pro/docs/cli/longhand/ls) to see the imported keywords
- [`ed longhand`](https://getedith.pro/docs/cli/longhand), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

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