Commit graph

71 commits

Author SHA1 Message Date
Damien Elmes
bee3422a72 catch cards without template in db check 2012-10-23 13:09:57 +09:00
Damien Elmes
54461918a6 make sure newly created cards don't end up in filtered deck 2012-10-09 19:35:08 +09:00
Damien Elmes
f13acf8c68 handle file name conflicts in media on .anki2 import 2012-09-21 15:25:52 +09:00
Damien Elmes
2ee3ec8b7a delete notes that are missing their model 2012-09-09 06:06:55 +09:00
Damien Elmes
a742784873 fix return when collection corrupt 2012-08-28 12:38:24 +09:00
Damien Elmes
2616e95348 don't delete old revlog entries when cards deleted 2012-07-11 10:35:17 +09:00
Damien Elmes
c5abb535ed don't delete orphaned notes on sync
Fields are synced later, and they may prevent a note from becoming orphaned
2012-07-04 22:41:21 +09:00
Damien Elmes
0ac8c7ae59 use existing stripSounds() instead 2012-07-04 19:29:07 +09:00
Damien Elmes
5c8f45b2c4 make question replaying a deck property; add exclude arg to play 2012-07-04 18:19:05 +09:00
Damien Elmes
d47dfc1780 don't include audio in {{FrontSide}} 2012-07-04 18:17:08 +09:00
Damien Elmes
7458fca33c removed size report in check db 2012-05-28 21:16:27 +09:00
Damien Elmes
af97497747 option to avoid media dir creation 2012-05-28 17:18:12 +09:00
Damien Elmes
c27cc17762 findDupes() and findNotes() 2012-05-27 00:12:26 +09:00
Damien Elmes
4c57d91394 clarify #s in empty card report 2012-05-26 17:15:07 +09:00
Damien Elmes
7c67e292db fix empty cloze check 2012-05-26 17:09:56 +09:00
Damien Elmes
6af7f6e846 improved finding
- new per-character tokenizer that is easier to read and maintain
- OR searches now supported
- grouping with ( and ) now supported
- sorting is off by default now
- searching in html is disabled for now, but may come back later
- use ? arguments instead of named arguments to ease porting to other
  platforms
- field:foo is no longer wrapped in implicit wildcards
- avoid joining notes table if it not required - about 30% faster
- fixed sql injection bug in findNids()
- commands no longer have to take care of negation themselves
- commands can return nothing to immediately flag the query as invalid
2012-05-23 20:21:47 +09:00
Damien Elmes
233bf555b4 custom browser q/a columns 2012-05-22 15:37:15 +09:00
Damien Elmes
0345ad7e2e add {{FrontSide}} for copying question text 2012-05-21 12:50:54 +09:00
Damien Elmes
b6bdd4aa21 daily learning queue
The way we were handling 1 day+ learning intervals was not great - they'd show
up at the start of a new day before normal reviews, meaning the hardest cards
came first. In previous Anki versions we deliberately sorted the queue in the
opposite order to prevent that. When relearning the cards the next day, if you
failed a card and expected to see it in 10 minutes that wouldn't happen
either, as all the overdue cards took precedence.

To fix this, we put cards that are due tomorrow or later into a separate queue
(queue 3), and pull cards from that queue only after the reviews are done. In
the future it might also be nice to move overdue learning cards into that
queue automatically at the start of a session.
2012-05-20 16:56:14 +09:00
Damien Elmes
6096d39748 revert to default did if invalid in _newCard() 2012-05-14 03:02:19 +09:00
Damien Elmes
6f90e2c445 don't generate cards into invalid decks 2012-05-06 02:00:33 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00
Damien Elmes
5f7c80a2cd add c<n> for conditional generation of specific clozes 2012-04-25 11:11:21 +09:00
Damien Elmes
b3ff6044c8 add replayBoth to conf 2012-04-24 16:33:02 +09:00
Damien Elmes
07ce818f18 add to current deck option 2012-04-23 04:16:36 +09:00
Damien Elmes
3c6707c17f don't genCards() into a cram deck 2012-04-22 08:27:31 +09:00
Damien Elmes
f16335ee7f use a smaller range for random numbers
Using 2**32 is the technically superior solution, since it minimizes the chance of multiple notes sharing a due # (which has implicates for sibiling spacing), but the large numbers are confusing to users.
2012-04-21 08:56:56 +09:00
Damien Elmes
b4cf7e39b5 i18n empty cards msg 2012-04-21 07:25:41 +09:00
Damien Elmes
a3407020cb split empty card removal into separate report 2012-04-19 11:14:57 +09:00
Damien Elmes
5cbe93b63d more cloze work
- upgrade old decks
- specify the field in the cloze, so the user can have an id in the first
  field
2012-04-19 08:32:19 +09:00
Damien Elmes
41fa9a9896 cloze refactor wip 2012-04-19 07:14:03 +09:00
Damien Elmes
609e165c95 use deck of existing cards if all use same deck 2012-04-18 05:24:02 +09:00
Damien Elmes
44d62d6a41 fix remEmptyCards filter arg order 2012-04-18 01:59:38 +09:00
Damien Elmes
d429519929 return check db status 2012-04-17 20:16:41 +09:00
Damien Elmes
29cb76de8f add check for broken review due #s 2012-04-12 17:30:14 +09:00
Damien Elmes
dd9d9f4223 update position on integrity check 2012-04-11 18:10:49 +09:00
Damien Elmes
8a6e9945b2 use human-readable # when generating new cards 2012-04-11 18:09:13 +09:00
Damien Elmes
245be4c166 obsolete col attrs 2012-03-28 06:40:15 +09:00
Damien Elmes
62117453ff timeboxing 2012-03-16 19:56:10 +09:00
Damien Elmes
ef386d8698 anki.cram no longer exists 2012-03-14 00:26:10 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +09:00
Damien Elmes
01404fafaa start of cram refactor 2012-03-08 16:47:22 +09:00
Damien Elmes
a2312f9a1f change cards table schema
In preparation for cramming:

- add odid for storing old deck on a per-card basis
- rename edue to odue
- at the moment note.did still exists, but in the future we may ignore it and
  use model.did instead
2012-03-08 11:28:12 +09:00
Damien Elmes
056dd4d68e remove some dead code thanks to richard 2012-02-24 20:40:17 +09:00
Damien Elmes
f6f6649062 return the restored card when undoing a review 2012-02-13 12:51:15 +09:00
Damien Elmes
58935afba7 when undoing, update daily limits 2012-01-24 23:38:58 +09:00
Damien Elmes
7b53facc4c add integrity check back to fixIntegrity 2011-12-18 12:32:44 +09:00
Damien Elmes
819bc326e0 make sure we set usn correctly on card gen; work even if no existing cards 2011-12-14 10:22:09 +09:00
Damien Elmes
bacbea13e0 conf() -> confForDid(); add getConf() 2011-12-13 13:56:05 +09:00
Damien Elmes
5c5181f063 don't switch journal mode back on server 2011-12-13 12:15:03 +09:00