blob: dd12bf9cdb9fb65999b5b3b462ee4918775ece8c (
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
|
(defun org-fc-type-normal-init ()
(interactive)
(org-fc--init-card "normal")
(org-fc-review-data-update '("front")))
(defvar org-fc-type-normal--hidden '())
(defun org-fc-type-normal-setup (_position)
(interactive)
(if (org-fc-has-back-heading-p)
(progn
(org-show-subtree)
(setq org-fc-type-normal--hidden (org-fc-hide-subheading "Back"))))
(org-fc-review-flip-hydra/body))
(defun org-fc-type-normal-flip ()
(interactive)
(save-excursion
(org-show-subtree)
(dolist (pos org-fc-type-normal--hidden)
(goto-char pos)
(org-show-subtree)))
(org-fc-review-rate-hydra/body))
;; No-op
(defun org-fc-type-normal-update ())
(org-fc-register-type
'normal
'org-fc-type-normal-setup
'org-fc-type-normal-flip
'org-fc-type-normal-update)
(provide 'org-fc-type-normal)
|