* Allow specifying field values from org-mode properties
* Update documentation and fine-tune the diff
* Refactor, fix indentation, and other minor fixes
Renamed all-fields to named-fields since the heading and content
before first subheading can also be a field.
---------
Co-authored-by: Renat Galimov <renat@Renats-MacBook-Pro.local>
Co-authored-by: orgtre <orgtre@posteo.net>
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.