summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-09-07 12:15:33 +0200
committerLeon Rische <leon.rische@me.com>2020-09-07 12:15:33 +0200
commit417893d4f695aba963f1e918efdf07df933ba9b8 (patch)
treedd7d385d63ca9f14e8521c7e54cf29d1af7e0222 /org-fc.el
parentca9c4272b73dfaaa3863124e96a8d761568d72d1 (diff)
Only show the entry of cloze cards
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/org-fc.el b/org-fc.el
index f5eb75d..c1a0307 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -918,15 +918,17 @@ Processes all holes in the card text."
(defun org-fc-type-cloze-setup (position)
"Prepare POSITION of a cloze card for review."
+ (outline-hide-subtree)
(let ((hole (string-to-number position))
(cloze-type (intern (org-entry-get (point) org-fc-type-cloze-type-property))))
- (org-show-subtree)
+ (org-show-entry)
(setq
org-fc-type-cloze--overlays
(org-fc-type-cloze-hide-holes hole cloze-type))))
(defun org-fc-type-cloze-flip ()
"Flip a cloze card."
+ (org-show-children)
(if-let ((overlays org-fc-type-cloze--overlays))
(progn
(if (plist-member overlays :separator)