added defcustom anki-editor-allow-duplicate

This commit is contained in:
finn 2023-04-20 16:14:26 +02:00
parent 87394670a2
commit 702d3041b2

View file

@ -67,6 +67,10 @@
This prevents early closing of cloze." This prevents early closing of cloze."
:type 'boolean) :type 'boolean)
(defcustom anki-editor-allow-duplicate t
"if nil, pushing notes that anki identifies as dublicates will fail"
:type 'boolean)
(defcustom anki-editor-org-tags-as-anki-tags t (defcustom anki-editor-org-tags-as-anki-tags t
"If nil, tags of entries won't be counted as Anki tags." "If nil, tags of entries won't be counted as Anki tags."
:type 'boolean) :type 'boolean)
@ -252,6 +256,7 @@ request directly, it simply queues the request."
:deckName (anki-editor-note-deck note) :deckName (anki-editor-note-deck note)
:modelName (anki-editor-note-model note) :modelName (anki-editor-note-model note)
:fields (anki-editor-note-fields note) :fields (anki-editor-note-fields note)
:options (list :allowDuplicate anki-editor-allow-duplicate)
;; Convert tags to a vector since empty list is identical to nil ;; Convert tags to a vector since empty list is identical to nil
;; which will become None in Python, but AnkiConnect requires it ;; which will become None in Python, but AnkiConnect requires it
;; to be type of list. ;; to be type of list.