summaryrefslogtreecommitdiff
path: root/docs/components.org
blob: c43b34f980cb3cd90b327756669f13b1109cad6f (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
#+TITLE: Components
#+DATE: [2020-08-27 Thu 11:55]
#+KEYWORDS: fc

Components of org-fc and the most important functions they expose.

* Overview
#+begin_src plantuml :file images/components.png
[Index / Query] -* [Dashboard]
[Index / Query] -* [Review]
[Index / Query] -- [AWK]
[Review] -- [Card Types]
[Review] -- [SM2 Spacing Algorithm]
[Card Types] -- [Normal]
[Card Types] -- [Double]
[Card Types] -- [Text Input]
[Card Types] -- [Cloze]
[Text Input] -- [Diff]
#+end_src

#+RESULTS:
[[file:images/components.png]]

* ~org-fc-core.el~
Core functions.
* ~org-fc-index.el~
Takes care of indexing and filtering cards.

- ~(org-fc-index context)~ (context is a [[file:review_contexts.org][Review Context]])
- ~(org-fc-index-positions index)~
- ~(org-fc-index-shuffled-positions index)~

- ~(org-fc-index-compile-filter filter)~, turns ~filter~ into a lambda
  function

** ~org-fc-awk.el~
AWK based indexer.
* ~org-fc-sm2.el~
Implementation of the SM2 [[file:repetition_spacing_algorithm.org][Repetition Spacing Algorithm]].

- ~(org-fc-sm2-next-parameters ease box interval rating)~
  returns a list ~(next-ease next-box next-interval)~

* ~org-fc-review.el~
Review functionality of org-fc.

- ~(org-fc-review context)~ where ~context~ is a [[file:review_contexts.org][Review Context]]
- ~(org-fc-demo)~ starts a review of the demo file
* ~org-fc-diff.el~
Diff functions for (single-line) strings.

- ~(org-fc-diff got expected)~
  returns a pair ~(got . expected)~ of colored strings.
* ~org-fc-dashboard.el~
Dashboard for org-fc.

- ~(org-fc-dashboard context)~ where ~context~ is a [[file:review_contexts.org][Review Context]]
* Card Types
** ~org-fc-type-normal.el~
Simple front -> back card type.
** ~org-fc-type-double.el~
Bidirectional card type (front <-> back).
** ~org-fc-type-text-input.el~
Text input cards.
** ~org-fc-type-cloze.el~
Card type for cloze deletions.