branch: elpa/gnosis commit 45d00b974078872575dc27f5f6838d95fe7127e5 Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
[feature] Add gnosis-import-deck. --- gnosis.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnosis.el b/gnosis.el index 11aaff31fa..8722d64f9b 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1913,6 +1913,15 @@ generate new note id." (cl-loop for note in notes do (gnosis-save-note note deck)))) +;;;###autoload +(defun gnosis-import-deck (file) + "Save gnosis deck from FILE." + (interactive "fFile: ") + (with-temp-buffer + (insert-file-contents file) + (org-mode) + (gnosis-save-deck (gnosis-export-parse--deck-name)))) + ;;;###autoload (defun gnosis-add-note (deck type &optional keimenon hypothesis answer parathema tags example)