this post was submitted on 22 Oct 2023
1 points (100.0% liked)
Emacs
311 readers
3 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Hi, I found that we have the same idea. I recently wrote a similar package that
focuses on customizability and not modifying the original text. My idea is that
we should allow users to define which parts are the front side of the card,
which parts are the back side, which parts need to create an ID, and so on, so
my package focuses more on customizability. Additionally, I found that we both use org
emphases as the marker for cloze, which is really coincidental :) .
Here is my package: https://github.com/Elilif/emacs-anki-helper
You beautiful bastard. Starred.
Yes, org emphasis makes it easy with the regexp
org-emph-re
:-)From your source code, I infer that the note ID is saved in a property ANKI_NOTE_ID, which always goes in a property drawer, correct? Or did you find a way to skip recording the ID in some cases? Or detach property drawers from headlines?
I am learning french, too. I my case, I use item list to collect words, for instance:
^(- [ ] Oui)
^(- [ ] Non)
^(- [ ] Peut-être.)
In this case, I can sync all words without recording the ID.