Skein Documentation
The user manual of Skein, a notebook for X11 that is part Markdown editor and part small graph database. This page says what Skein is, what happens the first time it runs, and takes you on a short tour. Then it lists the other pages of the manual.
What Skein is
Skein is for a body of notes that belong together and point at each other: recipes and their ingredients, the characters, places and scenes of a story, a personal wiki, research notes. You decide what kinds of things your notes are about, and Skein keeps each thing as an object with its own write-up, its own fields and its own links to other objects.
- You define the kinds of things. A new project starts empty. You make object types (the menus call them groups), such as "Recipes" or "Characters", and give each its own icon, color and fields.
- Objects form an outline. Each object belongs to a type and can hold child objects, as deep as you like, so the Project Tree reads as a real outline: a scene under a chapter, a variant under a recipe.
- Every object has a document. It is written in Markdown and shown formatted as you type, with headings, lists, tables, colors, images and LaTeX math. One key shows the Markdown source instead.
- Fields for structured facts. Text, multi-line text, image and dropdown fields, and small tables such as an ingredients list, all defined once for a type and filled in for each object in the Inspector.
- Connections. A link in a document goes to another object, and the Graph draws those links. Named relationships between two objects are kept in the Inspector.
- One file per project. A project is a single
.yarnfile, an ordinary SQLite database. Skein can also open plain folders of Markdown files and work on them in place. - Pictures are decoded in a jail. The images a note names are decoded in a separate process that the Linux kernel locks in, so a hostile picture cannot reach your files. See Safety.
Building and installing
Skein is built from source with make, and needs SQLite and the usual X11 development files. Everything else, including the toolkit that draws its window, is in the source tree. Building and Installing has the list of packages, the commands, and which files to copy where, since the Makefile has no install target.
make
./skein [project-file]
The first run
The first time it runs, Skein makes its configuration folder, ~/.config/skein, and writes into it:
| In ~/.config/skein | What it is |
|---|---|
settings.conf |
Your settings from the Settings dialog, the window's size and place, the visible panels, your keyboard shortcuts and the last project. |
themes/ |
The 14 built-in color themes, one file each, yours to change. See Themes. |
Other files appear there as you use Skein: file_dialog.txt (what the file dialogs remember) and, once you open a Markdown folder, md_folders.conf, md_folders.yarn and md_folder_state.yarn (see Markdown Folders).
With no project named on the command line, Skein opens the project you had open last, if Settings > General > "Reopen last project on startup" is on (it is at first) and the file still exists. Otherwise it starts a new, empty project that lives only in memory: the title bar reads "Skein - Untitled", and nothing is written to disk until you save it and choose a file name.
When you worked on Markdown folders last, Skein opens those folders again at startup instead, under the same setting. A project named on the command line is always the one opened. A project that cannot be opened is said so in the window, and Skein starts on a new, empty one.
A short tour
The window has a menu bar and a toolbar at the top, a status bar at the bottom, and four panels in between: the Project Tree on the left, the Document in the middle, the Inspector on the right and the Graph along the bottom. Every panel except the Document can be moved, floated and closed.
- Choose File > New Group (
Ctrl+Shift+N) and name an object type, for example "Recipes". It appears in the Project Tree. - With the type selected, choose File > New Child Node (
Ctrl+N) and name an object, for example "Sourdough". It appears under the type and is selected. - Type its write-up in the Document panel. The toolbar above it formats the text;
Ctrl+Mshows the Markdown source and back. - Choose Edit > Manage Fields... (
Ctrl+Shift+F) and add a field, for example a Dropdown named "Course" with the choices "Starter, Main, Dessert". Close the dialog and pick a value in the Inspector's Properties tab. - Select some words in the document, press the toolbar's Insert Link button and type a web address. A click on the link opens it in your browser. Links from one object to another are explained in The Document Panel.
- Press
Ctrl+S. The first save of a new project asks where to put the.yarnfile.
Help > Usage (F1) lists the keys in a small window; Keyboard Shortcuts has every key, with explanations.
The parts of Skein
Each box links to its page. The box with a red border is about the jail: the separate, locked-in process that decodes every picture a note shows.
The pages of the manual
-
The ideas Skein is built on: object types, objects and their nesting, documents, fields of every kind, table fields, relationships and links, and how they fit together.
-
The four panels and how to arrange them, the menus, the toolbar, the status bar, the title bar, and moving between the panels with the keyboard.
-
Making, renaming, deleting and moving types and objects, drag and drop, sorting, the right-click menu, Change Icon, and the Find bar.
-
Writing a note: rich text and the Markdown source, the formatting toolbar, the Markdown Skein understands, links, images, math, and what the panel shows for a type or a folder.
-
The Properties tab and each kind of field, table fields, the built-in Notes and Color fields, Manage Fields and the Row/Column dialog, and the Relationships tab.
-
What the Graph shows, which objects are on it, selecting and dragging nodes, and Sort Graph Nodes.
-
The
.yarnproject file, new, open, save and close, unsaved changes, undo, autosave, backups and restoring them, and the file dialogs. -
Opening folders and files of Markdown, how they show in the tree, when files are written, and Save Folder As Project.
-
Importing CSV files and the notes of Cherrytree, Evernote, Gnote, Google Keep, NoteCase, Simplenote and Standard Notes, and exporting a static web site.
-
Every tab of the Settings dialog, each setting on it, and its key in
settings.conf. -
Every default key, the keys of the editor, the dialogs and the file dialog, and how to change keys in Settings.
-
The color theme of the window, the light or dark Document panel, the icon style, and the theme file.
-
Why a picture in a note cannot harm you: the jailed worker that decodes it, the checks on what comes back, and what happens on a system without the jail.
-
What you need,
makeandmake clean, installing by hand, and the desktop file.
