summaryrefslogtreecommitdiff
path: root/demo.org
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-01-20 22:59:53 +0100
committerLeon Rische <leon.rische@me.com>2020-01-20 22:59:53 +0100
commita48ce9127be18d4b25caf65398332604113716de (patch)
tree504b6f78500ed1c3bcbc63849f3aeefc61ff02cd /demo.org
parent5561ea0ea9b63dc7950ee2fee99c73ec51e42c88 (diff)
Implement "single" cloze type
Diffstat (limited to 'demo.org')
-rw-r--r--demo.org57
1 files changed, 48 insertions, 9 deletions
diff --git a/demo.org b/demo.org
index 0d071af..81accb2 100644
--- a/demo.org
+++ b/demo.org
@@ -9,7 +9,7 @@
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+---------------------|
-| front | 2.50 | 4 | 13.69 | 2020-01-25T06:47:55 |
+| front | 2.50 | 6 | 83.98 | 2020-04-05T11:29:48 |
:END:
Front of the card
** Back
@@ -26,8 +26,8 @@ Back of the card
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+---------------------|
-| front | 2.50 | 4 | 14.38 | 2020-01-25T23:25:30 |
-| back | 2.50 | 4 | 14.95 | 2020-01-26T13:02:32 |
+| front | 2.50 | 5 | 35.76 | 2019-02-17T06:10:32 |
+| back | 2.50 | 6 | 94.52 | 2020-04-16T00:33:34 |
:END:
For cards without a "Back" heading, the headings main text is
considered as the back side.
@@ -42,8 +42,8 @@ considered as the back side.
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+---------------------|
-| 0 | 2.50 | 3 | 6.00 | 2019-01-17T12:32:41 |
-| 1 | 2.50 | 4 | 13.91 | 2020-01-25T12:14:46 |
+| 0 | 2.50 | 6 | 89.34 | 2020-04-10T20:11:35 |
+| 1 | 2.50 | 5 | 31.55 | 2019-02-13T01:13:00 |
:END:
A {{cloze deletion}@0} can have multiple {{holes}@1}.
* Cloze Enumeration :fc:
@@ -57,14 +57,53 @@ A {{cloze deletion}@0} can have multiple {{holes}@1}.
:REVIEW_DATA:
| position | ease | box | interval | due |
|----------+------+-----+----------+---------------------|
-| 0 | 2.50 | 2 | 1.00 | 2019-01-12T12:32:37 |
-| 1 | 2.50 | 3 | 6.00 | 2019-01-17T12:32:39 |
-| 2 | 2.50 | 2 | 1.00 | 2019-01-12T12:32:31 |
-| 3 | 2.50 | 2 | 1.00 | 2019-01-12T12:32:48 |
+| 0 | 2.50 | 4 | 13.54 | 2019-01-26T00:58:48 |
+| 1 | 2.50 | 6 | 72.76 | 2020-03-25T06:21:24 |
+| 2 | 2.50 | 5 | 36.18 | 2020-02-17T16:31:25 |
+| 3 | 2.50 | 4 | 16.20 | 2019-01-28T16:51:34 |
:END:
+
Enumerations are useful for
- {{Learning}@0}
- {{Lists}@1}
- {{of}@2}
- {{items}@3}
+* AWK Source Example :fc:
+:PROPERTIES:
+:FC_CREATED: 2020-01-20T21:44:50
+: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 | 1 | 0.01 | 2020-01-20T22:07:25 |
+| 1 | 2.50 | 1 | 0.01 | 2020-01-20T22:07:24 |
+| 2 | 2.50 | 1 | 0.01 | 2020-01-20T22:05:31 |
+: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