From 352b2b4aa8658965e67855cd0e9b698c299b6a23 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 16 Jun 2024 20:29:04 +0300 Subject: Add gnosis-review-action--edit --- gnosis.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. -- cgit v1.2.3