It is retrieved with inheritance and if set takes precedence
over the variable `anki-editor-prepend-heading`.
Also add a function to toggle it and change the behavior
of `anki-editor-toggle-format` to match it: Now every call
to the toggling functions will actually toggle the value in
effect and an entry property is only set if necessary.
It improves upon `anki-editor-delete-notes` when deleting note at
point, allowing aribtrary position in the note when calling it,
and also allowing deletion in Org. `anki-editor-delete-notes` is
removed.
Introduce the ANKI_DEFAULT_NOTE_TYPE property and custom option
`anki-editor-default-note-type` as a fallback. Note creation from
an existing org subtree (using `anki-editor-set-default-note-type`)
or from scratch (using `anki-editor-insert-default-note`) is now
slightly quicker. Also introduce `anki-editor-set-note-type`.
The inserted note can now make use of both the heading and the
content before the first subheading for fields. Also try to be
smarter about placement of point.
Like this, when exactly one field is missing and there is content
before the first (sub)heading, the heading is seen as part of that
content and one can avoid having to duplicate it there. The
content with the prepended heading will be mapped to the missing
field. Notes in Anki and Org can be made to look more similar
without always needing a separate field for the heading.
* request 0.3.1 assumes utf-8
The tkf library now defaults to utf-8 encoding (so does not need to be
done in anki-editor). Further the synchronous bug has been fixed.
* must upgrade to request 0.3.1
* use melpa versioning
* Synch bug in request-20190730.1014
Hypothesis: synch bug is triggered depending on byte compilation of request-curl-callback.
* when-let issue
* restore "HACK: With sync set to t"
Package maintainer reports undowned semaphore with tkf/emacs-request library
f466ab1. I don't believe restoring the "HACK" would cure this since
":sync t" remains.
* anki-editor-cloze-region: Accept hint as an argument.
To allow the function to be called non-interactively accept 'hint' as function's
argument.
* Split anki-editor-cloze into interactive and non-interactive parts.
* Add anki-editor-cloze-dwim function.
Create a cloze from currently selected region, if no region selected, use word
at point.