1 Import and Export
liquibyte edited this page 2026-11-19 16:23:32 -06:00

Import and Export

Skein can bring in a CSV file and the notes of seven other note programs, and can write a project out as a small web site. This page says what each importer reads, what becomes of it in Skein, and what the export writes.

1. How every import works

File > Import has one item for each format: Cherrytree (.ctd)..., CSV..., Evernote (.enex)..., Gnote Folder..., Google Keep Folder..., NoteCase (.ncd)..., Simplenote (.json)... and Standard Notes (.json).... Each opens the "Import" file dialog, showing the files of that format; for Gnote and Google Keep you choose a folder instead.

  1. Skein reads the file. A file that cannot be read, or that is not of the expected format, is left alone, and a message says why.
  2. Skein asks "Import as object type:", with the file's name (without its extension), or the folder's name, filled in. Every import makes a new object type with that name; nothing goes into a type you already have. For a folder (Gnote, Google Keep), the type is made even when the folder holds no notes Skein can read.
  3. Skein makes the objects.
  4. The tree shows the new type opened, with the last imported object selected, and the status bar says how many notes came in, for example "12 notes imported from '...' as "Keep".".

The objects arrive as unsaved changes, like any other; save the project to keep them, or quit with Discard to drop them. An import cannot be undone with Edit > Undo.

The text of imported notes. Each line break of a note is kept. Characters that mean something in Markdown (* _ ` ~ ^ = [ < # and the backslash) are escaped, so the note looks as it did and nothing in it turns into formatting by accident.

Dates, tags and the like. Most importers keep a note's tags, dates and flags as values named tags, created, modified, pinned and trashed. They are not fields of the new type, so the Inspector does not show them at first. To see them, add Text fields with exactly these names to the type in Manage Fields; the values appear at once.

2. CSV

A CSV file becomes one object for each data row. The first row is taken as the names of the columns, and the separator (a comma, a semicolon or a tab) is found by itself.

  • The name of each object comes from the column called name (in any mix of capitals), or else from the column with the most different values. A row with no name becomes "Row 5" (its number, counting the data rows from 1).
  • Every other column becomes a Text field of the new type, named after the column, and each row's value is its object's value. A column with no name in the first row is named by its place, "Column 3".
  • Nesting. Skein looks for columns that sort the rows into a few groups: columns with between 2 and 64 different values, fewer than there are rows, so that the values repeat (for example a category and a subcategory). When it finds some, it puts the one with the fewest values first and asks "Nest under: Category → Subcategory" with the buttons Nest and Cancel. With Nest, each value of those columns becomes an object of its own, and the rows go under them in that order: a recipe under "Bread" under "Baking". With Cancel, all rows become top-level objects. The columns used for nesting are not also made fields. A row with an empty value in one of them skips that level.

3. Other note programs

Format What is read What becomes of it
Cherrytree (.ctd) A Cherrytree XML file. Each node an object, with its child nodes as child objects. Its rich text becomes Markdown: headings, bold, italic, underline, strikethrough, superscript, subscript, monospace, text and background colors, and web links. Tags, the creation and the last save time are kept (times as 2026-11-16 14:30, UTC). Links to other nodes become plain text; pictures, code boxes, tables and anchors are left out.
Evernote (.enex) An Evernote export. Each note a top-level object, named by its title. Its text is kept as plain text, without formatting. Tags and the creation date (as Evernote writes it) are kept; attachments and pictures are left out.
Gnote folder Every .note file in the folder you choose (not in its subfolders). Each note a top-level object, named by its title, with its text as plain text. Its tags (including Gnote's notebook tags) and creation date are kept.
Google Keep folder Every .json file of a Google Takeout "Keep" folder (not in its subfolders). Each note a top-level object, named by its title (or its file name). A checklist becomes a to-do list. Labels, pinned, and the creation and edit times (as 2026-11-16 14:30, UTC) are kept. Notes in the trash are left out; attachments are left out.
NoteCase (.ncd) NoteCase's HTML outline format. Each entry an object, with its sub-entries as child objects, and its text. Keywords and the creation and change dates (as 2026-11-16 14:30, UTC) are kept.
Simplenote (.json) A Simplenote export. Each note a top-level object, named by its first line; the whole note is its text. Notes in the trash are imported too, with trashed set to yes. Tags, pinned, and the creation and change dates (as Simplenote writes them) are kept.
Standard Notes (.json) A Standard Notes backup that is not encrypted. (The notes of an encrypted backup arrive as empty objects named "Untitled".) Each note a top-level object, with its title and text. Its tags, and the creation and change dates (as Standard Notes writes them), are kept.

4. Export as a static site

File > Export as Static Site... writes the project as web pages that any browser opens without Skein. Its file dialog, "Export as Static Site", starts in the project's folder with the project's name filled in, and its file type list chooses the form:

File type What is written
Single HTML File (chosen at first) One .html file (the extension is added when you leave it out). It starts with a table of contents grouped by type, followed by a section for every object, each with its name as a heading and its document.
Static Site (Folder) A folder with the name you type, made if it does not exist. In it, index.html lists each type with its top-level objects; each type has a folder of its own, and each object a page, recipes/sourdough.html, with its children in a folder beside it (recipes/sourdough/starter.html). Each page has a link back to the index ("← Index"), the object's name as a heading, its document and, when it has children, a "Contents" list of them.

File and folder names are made from the names: small letters and digits, with a dash in place of anything else, and -2, -3 added when two would be the same. A link from one document to another object becomes a link to that object's page or section; a web or mail address stays a link; a link to anything else is shown struck through. When it is done, the status bar says "Exported 42 pages to '...'.". When files could not be written, a message says how many and names the first instead. Two types whose names give the same folder name get two folders (recipe/, recipe-2/). Names are written into the pages as text, so < and & show as they are. The index page is titled with the project's name, without .yarn; for a new project that was never saved, the name filled in is skein-export and the title "Skein Export". The whole of each document is exported, however long.

The pages are written with a plain, light style of their own. From the Markdown of the documents the export understands headings, bullet lists, code blocks, bold, italic, inline code and links. Each line of text becomes a paragraph of its own.

5. Known limitations

  • The export leaves out pictures, tables, numbered and nested lists, quotes, rules, strikethrough, colors and math: their text appears as plain text. A picture shows as an exclamation mark and its description, struck through.
  • Backslash escapes are not understood: the backslashes show in the pages, as they do in every imported note.
  • A folder export writes over existing files without asking, and leaves files of an earlier export in place. A single file is asked about (Overwrite or Cancel) only when you typed its name with .html.
  • Names written only in letters other than a to z, such as Greek or Japanese, all get the file name "item" (item, item-2, ...).
  • Imported Markdown (from Simplenote or Standard Notes, for example) shows as text, not as formatting, because its Markdown characters are escaped.
  • Dates are kept in different forms by different importers, as the table above says.
  • Evernote notes longer than 64 KiB, and Cherrytree text runs longer than 8 KiB, are cut off.