summaryrefslogtreecommitdiff
path: root/org-fc-review.el
diff options
context:
space:
mode:
authorLeon <gh@leonrische.me>2022-01-06 18:51:43 +0100
committerGitHub <noreply@github.com>2022-01-06 18:51:43 +0100
commitf64b5336485a42be91cfe77850c02a41575f5984 (patch)
tree02f3cb15eb0e0ad6bd9b929f454ae41e43eca9af /org-fc-review.el
parent877b9687810e0cac1b8ed9c37cc4353495b38c9f (diff)
parent55b1f246458c4df55d88fc890aa0d3a4cecd4617 (diff)
Merge pull request #72 from c1-g/resuming-session
org-fc-review: Ask to resume when there's already a session.
Diffstat (limited to 'org-fc-review.el')
-rw-r--r--org-fc-review.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/org-fc-review.el b/org-fc-review.el
index f41baeb..2ca2627 100644
--- a/org-fc-review.el
+++ b/org-fc-review.el
@@ -91,7 +91,8 @@ Valid contexts:
- a list of paths"
(interactive (list (org-fc-select-context)))
(if org-fc-review--session
- (message "Flashcards are already being reviewed")
+ (when (yes-or-no-p "Flashcards are already being reviewed. Resume? ")
+ (org-fc-review-resume))
(let* ((index (org-fc-index context))
(cards (org-fc-index-filter-due index)))
(if org-fc-shuffle-positions