blob: 1d8ac327a2bf2e141746446b5206f61c02410863 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
#+TITLE: Org-Flashcards Demo File
#+FILETAGS: fc-demo
* Normal Card :fc:
:PROPERTIES:
:ID: 9f80ab65-dbff-41b3-902f-0e8e177debbe
:FC_CREATED: 2000-01-01T00:00:00Z
:FC_TYPE: normal
:END:
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+----------------------|
| front | 2.50 | 7 | 203.25 | 2000-01-01T00:00:00Z |
:END:
Front of the card
** Back
Back of the card
* Compact Double Card :fc:
:PROPERTIES:
:ID: d3e290c2-a7f0-4d10-9a0a-6c1ecec3c29e
:FC_CREATED: 2000-01-01T00:00:00Z
:FC_TYPE: double
:END:
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+----------------------|
| front | 2.50 | 7 | 219.03 | 2000-01-01T00:00:00Z |
| back | 2.50 | 6 | 94.52 | 2000-01-01T00:00:00Z |
:END:
For cards without a "Back" heading, the headings main text is
considered as the back side.
* Cloze Deletion :fc:
:PROPERTIES:
:ID: 2ffc8b34-b2b5-4472-9295-714b5422679d
:FC_CREATED: 2000-01-01T00:00:00Z
:FC_TYPE: cloze
:FC_CLOZE_MAX: 1
:FC_CLOZE_TYPE: deletion
:END:
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+----------------------|
| 0 | 2.50 | 6 | 89.34 | 2000-01-01T00:00:00Z |
| 1 | 2.50 | 7 | 216.60 | 2000-01-01T00:00:00Z |
:END:
A {{cloze deletion}@0} can have multiple {{holes}@1}.
* Cloze Enumeration :fc:
:PROPERTIES:
:FC_CREATED: 2000-01-01T00:00:00Z
:FC_TYPE: cloze
:ID: 5eac5801-0ef5-4957-a818-e3f9f08a7d59
:FC_CLOZE_MAX: 3
:FC_CLOZE_TYPE: enumeration
:END:
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+----------------------|
| 0 | 2.50 | 6 | 80.76 | 2000-01-01T00:00:00Z |
| 1 | 2.50 | 6 | 72.76 | 2000-01-01T00:00:00Z |
| 2 | 2.50 | 6 | 91.28 | 2000-01-01T00:00:00Z |
| 3 | 2.50 | 6 | 95.75 | 2000-01-01T00:00:00Z |
:END:
Enumerations are useful for
- {{Learning}@0}
- {{Lists}@1}
- {{of}@2}
- {{items}@3}
* AWK Source Example :fc:
:PROPERTIES:
:FC_CREATED: 2000-01-01T00:00:00Z
:FC_TYPE: cloze
:FC_CLOZE_MAX: 2
:FC_CLOZE_TYPE: single
:ID: ae675e11-e003-4057-b6b1-1f4702837502
:END:
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+----------------------|
| 0 | 2.50 | 3 | 6.00 | 2000-01-01T00:00:00Z |
| 1 | 2.50 | 2 | 1.00 | 2000-01-01T00:00:00Z |
| 2 | 2.50 | 3 | 6.00 | 2000-01-01T00:00:00Z |
:END:
#+begin_src awk
# Set up variables for new file
{{BEGINFILE}@0} {
title = FILENAME;
}
match($0, /#\+TITLE: (.*)/, a) {
title = a[1];
}
{
i += 1;
if (i > 5) {
# Continue with next file
{{nextfile}@1};
}
}
# Print results for file
{{ENDFILE}@2} {
print FILENAME, title;
}
#+end_src
|