Commit graph

153 commits

Author SHA1 Message Date
Damien Elmes
c1ea82273b log actual changes, not all prospectives 2012-05-06 17:53:18 +09:00
Damien Elmes
a52e740ef6 log added and updated notes separately 2012-05-06 17:34:04 +09:00
Damien Elmes
a558c47330 fix duplicate check in import 2012-05-06 17:29:02 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00
Damien Elmes
5b97c3f20f don't throw error when update causes empty cards; fix unit test 2012-04-24 10:03:34 +09:00
Damien Elmes
92472045d7 fix importing of changed models and duplicate revlog/card entries 2012-04-24 01:27:36 +09:00
Damien Elmes
625a77f7f8 strip \n in csv tags: 2012-04-20 02:17:44 +09:00
Damien Elmes
e3f64c0f07 if there's no LastRepetition element, don't try import learning data 2012-04-06 19:38:32 +09:00
Damien Elmes
37b89cdac3 fix importing non-latin tags 2012-04-06 19:01:05 +09:00
Damien Elmes
c1242740ac fix importing of multiline fields 2012-04-06 18:13:21 +09:00
Damien Elmes
13049339ac add check for first field 2012-04-06 13:35:46 +09:00
Damien Elmes
b413b1562a when updating, preserve unmapped fields 2012-03-25 02:07:20 +09:00
Damien Elmes
8fd1756eb4 remove deck overriding in text file import 2012-03-20 05:43:55 +09:00
Damien Elmes
e41c7738d3 Revert "make importing with an explicit deck work again"
This reverts commit f177083bcb.
2012-03-20 05:42:17 +09:00
Damien Elmes
f177083bcb make importing with an explicit deck work again
This change was necessary as we moved away from note decks. However, now that
I think about it, decks may not be a terribly useful thing to specify
per-line in a text file. Committing in case the code is needed later, but I
will revert in the next commit.
2012-03-20 05:41:58 +09:00
Damien Elmes
f57f386b59 add deck and tags as default extra fields 2012-03-20 04:53:00 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +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
528224895c make sure we bump usn of revlog import 2012-03-08 08:32:24 +09:00
Damien Elmes
88b2b3ab85 we must bump usn when importing anki1 dconf 2012-03-08 08:25:05 +09:00
Damien Elmes
c92ab5dd19 allow due to be negative so we can reflect overdue cards 2012-03-07 07:11:30 +09:00
Damien Elmes
d1e04b908d log total imported 2012-03-07 07:08:02 +09:00
Damien Elmes
972526d265 update supermemo importer; fix factor 2012-03-07 06:58:06 +09:00
Damien Elmes
beef571d95 include _, remove some old unittest support files 2012-03-07 06:10:18 +09:00
Damien Elmes
e175dcd2d8 log total notes imported 2012-03-07 06:02:16 +09:00
Damien Elmes
869d665c22 gui integration for mnemosyne 2012-03-07 05:54:57 +09:00
Damien Elmes
1d29c7bcc0 foreign card importing; mnemosyne 2.0 importer 2012-03-07 05:45:52 +09:00
Damien Elmes
d60a3f8e25 ensure nextPos is not null 2012-03-06 16:21:51 +09:00
Damien Elmes
a99101d95c initMapping(); csv tweaks 2012-02-29 13:33:55 +09:00
Damien Elmes
44dea8211e don't strip leading whitespace 2012-02-29 12:51:00 +09:00
Damien Elmes
099ba71bb0 fix updating 2012-02-29 12:49:42 +09:00
Damien Elmes
7189e57e80 csv importing basics 2012-02-29 12:39:35 +09:00
Damien Elmes
54b8ee059f media importing 2012-02-26 08:13:48 +09:00
Damien Elmes
d7c58f8142 start of packaged deck importing 2012-02-26 06:49:38 +09:00
Damien Elmes
6f88deab52 add reminder about leading whitespace 2012-01-11 14:47:06 +09:00
Damien Elmes
9187255630 don't include (shared) in shared deck models 2011-12-15 11:53:41 +09:00
Damien Elmes
2c0b3f7c0a more usn fixes 2011-12-14 10:27:20 +09:00
Damien Elmes
47a170898a set default deck on upgrade; append old deck name to model 2011-12-14 10:20:56 +09:00
Damien Elmes
5333165c8d set conf name too on upgrade 2011-12-13 14:00:32 +09:00
Damien Elmes
bacbea13e0 conf() -> confForDid(); add getConf() 2011-12-13 13:56:05 +09:00
Damien Elmes
aeb38ab65d create a separate conf group for each imported deck 2011-12-13 04:42:12 +09:00
Damien Elmes
c1d9b62549 make sure we adjust due time on reviews when importing 2011-12-13 04:20:29 +09:00
Damien Elmes
8358c7e686 remove obsolete queue arg 2011-12-07 19:35:32 +09:00
Damien Elmes
478e4c9212 use the original id if available when importing 2011-11-26 12:06:17 +09:00
Damien Elmes
39f3c84661 point out that old files are invalid too 2011-11-25 14:19:41 +09:00
Damien Elmes
faf2f061a8 log imported card/media counts 2011-11-25 14:13:14 +09:00
Damien Elmes
b5c0b1f2c7 drop required/unique field properties
Instead of having required and unique flags for every field, enforce both
requirements on the first field, and neither on the rest. This mirrors the
subject/body format people are used to in note-taking apps. The subject
defines the object being learnt, and the remaining fields represent properties
of that object.

In the past, duplicate checking served two purposes: it quickly notified the
user that they're entering the same fact twice, and it notified the user if
they'd accidentally mistyped a secondary field. The former behaviour is
important for avoiding wasted effort, and so it should be done in real time.
The latter behaviour is not essential however - a typo is not wasted effort,
and it could be fixed in a periodic 'find duplicates' function. Given that
some users ended up with sluggish decks due to the overhead a large number of
facts * a large number of unique fields caused, this seems like a change for
the better.

This also means Anki will let you add notes as long as as the first field has
been filled out. Again, this is not a big deal: Anki is still checking to make
sure one or more cards will be generated, and the user can easily add any
missing fields later.

As a bonus, this change simplifies field configuration somewhat. As the card
layout and field dialogs are a popular point of confusion, the more they can
be simplified, the better.
2011-11-24 22:16:03 +09:00
Damien Elmes
f7790275ce groups -> decks 2011-11-23 19:28:09 +09:00
Damien Elmes
279a942642 deck -> collection 2011-11-23 17:47:44 +09:00
Damien Elmes
6e4e8249fb facts -> notes 2011-11-23 12:37:21 +09:00