Skip to content

Cards

A flashcard has two parts. The shape is which fields it has and how they are laid out on the side you see. You define it once and reuse it for many cards. The content is what you type into the fields, and there is much more of it. numen keeps them in two kinds of note: a card model is the shape, a deck is the content.

Both are markdown in your own folder, with type: in the frontmatter saying which kind each is. Nothing is stored in a database you cannot open.

The numen window: a card model naming four fields, and the templates that show them, each written beside its preview.
The fields at the top, and under them the templates, which show the question side and the answer side.

A card model names its fields in the frontmatter, in the order you are asked for them, and its templates in the body. A template is a front and a back, with {{Field}} marking where a value is inserted.

---
type: card-model
fields:
- Word
- Reading
- Meaning
---
## Recognise
### Front
<p>{{Word}} — <i>{{Reading}}</i></p>
### Back
<p><b>Meaning:</b> {{Meaning}}</p>

One card model can have several templates, and each template produces its own card: recognise it, produce it, read it aloud. A template naming a field the card model does not declare is reported against the card model, and the rest of it is read as usual.

A value is HTML, and so is the template it is inserted into. A card is the one thing in a vault that is not markdown: what you write there is shown as HTML, so rich text on a card is written in tags. The file around it is still markdown, and the headings that split it into cards and fields are markdown headings.

The numen window: a deck of Sanskrit roots as a grid of cards under their sections.
The cards as a grid, grouped under their section headings, and the preset that schedules them at the top.

A deck is a note of type: deck. A first-level heading opens a section; a second-level heading is a card; a third-level heading is one of its fields.

---
type: deck
---
# Verbs of going
## gam ^k7m2xq9fzp
[[Root]]
### Root
gam
### Meaning
to go, to move

The wikilink under a card names the card model the card uses. A card’s heading is its first field, shortened to one line. If you delete it, numen writes it again from the field.

The ^ and ten characters at the end of the heading are the card’s card id, which identifies the card for as long as it exists. It is written when the card is made, and a card you typed in by hand is given one the next time numen writes the file. The id does not depend on the deck: move a card to another deck, or to another vault, and it is the same card with the same history.

A deck need not have sections, and cards may come before the first section. Text between a section’s heading and its first card is left as you wrote it: numen does not read or format it, and it stays in place when numen writes the file.

New deck and New card model are on any row of the files, and Create deck and Create card model in the commands. Both create the file in the folder you chose.

In a deck, the plus at the end of a run creates a card there, using the card model you pick. Drag a card to move it, between sections or within one; drag a field in a card model to change the order you are asked for them. A new section is added at the end of the deck. Deleting a section deletes only its heading; its cards stay where they are.

The agent can do all of it too: make a deck or a card model, add cards to a deck from a note you point it at, edit one, take one away, open a section, and rename a field across a card model and in everything based on it. What it writes is the same markdown you would have typed, in your own folder.

A deck and a card model are read strictly, and what numen cannot interpret is shown on the card or the field it concerns, not at the top of the file:

A card under no card model the wikilink is missing, or points at a note that is not a card model.
A card naming a field the card model does not have the value is kept and the card says so.
A field written twice under one card numen cannot tell which one is meant.
Two cards with the same card id a card copied by hand. Both are shown, each marked.

Nothing you wrote is deleted or rewritten to make a file valid. The file stays as you left it and the window reports the problem.

A deck names the preset that schedules it with a link to a note of type: preset. You pick one in the line at the top of the deck tab. A deck naming no preset is scheduled by the defaults.

A session over your cards runs in a window of its own.

A deck and a card model are not indexed as prose. A card’s heading is indexed as a heading, and search results show that heading. The fields, the templates and the card ids are not indexed and do not appear in results.