
anki 2.1 add-on: buries new card siblings of any cards due in the next N days
Why?
This add-on solves the problem with the following scenario:
You are studying your Anki deck and a new card pops up:
Q: What is the former name of Kazakhstan's capital city Nur-Sultan? A: Astana
You study the card and learn it. Great.
But, 9 days later, you get an older sibling of that new card, but as a mature review card:
Q: What is the capital city of Kazakhstan? A: Nur-Sultan
You immediately recall the answer; the card goes from a 100 day interval to a 250 day interval. But there's a problem! The only reason you knew this answer was because of the new card that came up last week; without that reminder, you would have (appropriately) failed this card and re-learned it.
If only the new card had been buried until
after the old card was reviewed (and failed, then relearned). This add-on does just that: buries all new cards that have siblings due in the next N days.
This is ported from a personal (unreleased) Anki 2.0 add-on. Damien is dropping support for Anki 2.0 as of Jan 1, 2020. My hand is forced.
Core behavior - find all learning or review cards due up to and including N days from now
- find all new cards that are siblings of the cards found in step 1.
- bury all cards found in step 2
Additional behavior
You can set Anki to always show your new cards first (which of course will only those that remained unburied from the prospective bury process). This is nice if you want to get a head start on your new cards for the day while knowing that they won't "preview" any info from your due cards. This is disabled by default, but I originally had it hard coded into the add-on so I preserved the option for my own use and for anyone else who likes it.
Compatibility
Anki 2.1.15 tested.
I suspect that this should work with the updated v2 experimental scheduler, but I have not tested this yet. If you are feeling brave, feel free to do so and report back to me.
Legacy version for Anki 2.0 is included on Github (click colored badges above) if you want to manually download and install it. Ankiweb support for 2.0 ceases on Jan 1, 2020 so you can only find the legacy version there.
Default config values
These can be changed in the config file:
- ahead: how many days ahead do you want to look? Default 21. Anki natively sets this to 0. You can go negative if for some reason you want to only consider overdue cards.
- newsAlwaysFirst: If true, the new cards will always be displayed first. Why not just set your real Anki settings to do this? Because sometimes I have to do reviews on iOS/web where thre are no add-ons. If this is the case, I want my new cards last so the siblings will at least be buried after I review any due cards. That way my new cards won't tip me off to my review card answers. Thus I have my deck set to "new cards last" but this add-on can override that when you can *prospectively * bury the new cards. Default is false because I doubt most users need this nuanced behavior.
- shortcut: keyboard shortcut if you don't want to use the menu option (which appears under Tools).
- onStartup: future functionality, too bug-ridden for the initial release. Eventually will allow you to have the add-on run automatically when you first open Anki each day.
Changelog:- v2.1.001 initial port from my personal (unreleased) Anki 2.0 add-on. onStartup disabled.
Issues?
Please click the Github version number badge. That is the best way to contact me, suggest changes, or report bugs.
As add-ons are programs downloaded from the internet, they are
potentially
malicious. You should only download add-ons you trust.
To download this add-on, please copy and paste the following code
into Anki 2.1:
If you were linked to this page from the internet, please open Anki
on
your computer, go to the
Tools menu and then Add-ons>Browse & Install to paste in
the
code.
Great! I was looking for something like this. In general, I think Anki should have an option to redefine how long ‘burying’ lasts. IMHO longer than the default 1 day suits most situations.
In my experience it works fine with the v2 and v3 schedulers.
Very nice! Is there a way so that it applies to mature cards only? i.e. if prop:ivl>21 and due date is < x then bury new siblings
Exactly what I needed for my Recall/Recognition Japanese deck. It was showing me each side/sibling one day apart, which hindered my learning of the second sibling.