summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-06-16 20:29:04 +0300
committerThanos Apollo <[email protected]>2024-06-16 20:29:04 +0300
commit352b2b4aa8658965e67855cd0e9b698c299b6a23 (patch)
treeef5c2fbf18a7617a2ed7fc1f6cbe529b9a1432b0 /gnosis.el
parent9960c893190e3ce462568f987bad0dde9fc9b07c (diff)
Add gnosis-review-action--edit
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 0d815d9..b7bd513 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1324,6 +1324,18 @@ NOTE-NUM: The number of notes reviewed in the session."
(gnosis-vc-push))
(message "Review session finished. %d notes reviewed." note-num)))
+(defun gnosis-review-action--edit (success note note-count)
+ "Edit NOTE during review.
+
+Save current contents of *gnosis-edit* buffer, if any, and start
+editing NOTE with it's new contents.
+
+After done editing, call `gnosis-review-actions' with SUCCESS NOTE
+NOTE-COUNT."
+ (gnosis-edit-save-exit)
+ (gnosis-edit-note note t)
+ (recursive-edit)
+ (gnosis-review-actions success note note-count))
(defun gnosis-review-actions (success note note-count)
"Specify action during review of note.