Command reference
ed scratchpad export
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.