added defcustom anki-editor-allow-duplicate
This commit is contained in:
parent
87394670a2
commit
702d3041b2
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,10 @@
|
|||
This prevents early closing of cloze."
|
||||
: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
|
||||
"If nil, tags of entries won't be counted as Anki tags."
|
||||
:type 'boolean)
|
||||
|
@ -252,6 +256,7 @@ request directly, it simply queues the request."
|
|||
:deckName (anki-editor-note-deck note)
|
||||
:modelName (anki-editor-note-model 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
|
||||
;; which will become None in Python, but AnkiConnect requires it
|
||||
;; to be type of list.
|
||||
|
|
Loading…
Reference in a new issue