Skip to content
Edith

Docs

Command reference

ed longhand import

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.

Output
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.
Output
$ ed longhand import ~/Library/Application\ Support/espanso/match --dry-run14 matches would be added from 2 filesskip :ip: Snippets never run commands.
Output
$ ed longhand import base.ymlAdded 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