summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-06-16 20:31:07 +0300
committerThanos Apollo <[email protected]>2024-06-16 20:31:07 +0300
commit9b0415cf7590d0185d76fc99f454b4069e77b83a (patch)
treeb9d60ef685d23cd1efd9a79170114cf2f58c6e4b
parent772e4aec801da45b40a7ca41533346e4f2751acc (diff)
Refactor gnosis-review-actions
Use gnosis-review-action--FUNC functions, breaking this into smaller parts & ensuring everything works properly.
-rw-r--r--gnosis.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/gnosis.el b/gnosis.el
index 1c56c24..48aa652 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1380,17 +1380,10 @@ NOTE-COUNT: Total notes reviewed"
(?e "edit")
(?q "quit"))))
(?n (gnosis-review-result note success))
- (?o (setf success (if success nil t))
- (gnosis-display-next-review note success)
- (gnosis-review-actions success note note-count))
- (?s (gnosis-suspend-note note))
- (?e (gnosis-edit-note note t)
- (recursive-edit)
- (gnosis-review-actions success note note-count))
- (?q (gnosis-review-result note success)
- (gnosis-review-commit note-count)
- ;; Break the loop of `gnosis-review-session'
- (throw 'stop-loop t))))
+ (?o (gnosis-review-action--override success note note-count))
+ (?s (gnosis-review-action--suspend success note note-count))
+ (?e (gnosis-review-action--edit success note note-count))
+ (?q (gnosis-review-action--quit success note note-count))))
(defun gnosis-review-session (notes)
"Start review session for NOTES.