Commit graph

2210 commits

Author SHA1 Message Date
Damien Elmes
50bfb9dd4b replace clozes individually so hints aren't shared 2012-07-05 03:17:16 +09:00
Damien Elmes
5212f62198 fix problem with 'or' in findDupes 2012-07-05 01:12:26 +09:00
Damien Elmes
52ae784a65 don't throw error when learning card answered with no steps 2012-07-04 22:58:49 +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
74af374720 don't throw error when deck renamed to child of itself 2012-07-04 21:42:18 +09:00
Damien Elmes
b9b3dfbdee update active did list on rename 2012-07-04 20:28:08 +09:00
Damien Elmes
b4c7985757 tolerate incorrect {{=foo}} reference 2012-07-04 20:03:41 +09:00
Damien Elmes
9f2cf172f9 don't throw error when upgrading collection with unused models 2012-07-04 19:45:08 +09:00
Damien Elmes
c3aed57df5 silently ignore attempt to delete default deck
users can nest the default deck, so we don't want to throw an error when they
delete a top level deck which the default deck happens to be under
2012-07-04 19:42:24 +09:00
Damien Elmes
0ac8c7ae59 use existing stripSounds() instead 2012-07-04 19:29:07 +09:00
Damien Elmes
98c072fc2a updated regexp doesn't use third match 2012-07-04 18:28:26 +09:00
Damien Elmes
8d46173de9 Merge branch 'master' of github.com:dae/libanki 2012-07-04 18:28: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
05538f9ef2 reword stats line 2012-07-04 17:19:36 +09:00
Damien Elmes
f9c438b2bf reset factor when cards reset to new 2012-07-04 17:19:28 +09:00
Kieran Clancy
a766e0358e Fixed furigana regexp. It now ignores HTML and doesn't break spacing. 2012-07-03 20:25:20 +09:30
Damien Elmes
78a209edec catch invalid regex in field search 2012-06-20 10:28:08 +09:00
Damien Elmes
6559020d1f add {{hint:Field}} 2012-06-20 10:20:42 +09:00
Damien Elmes
738ab23bec add db.interrupt() 2012-06-20 09:55:40 +09:00
Damien Elmes
ce83001be6 treat 'not' as a normal search string 2012-06-20 09:37:56 +09:00
Damien Elmes
7130f2c1fe correctly handle relearn steps of 1+ days 2012-06-20 08:57:49 +09:00
Damien Elmes
140cc82a43 fix deck rename exception 2012-06-17 01:00:56 +09:00
Damien Elmes
2b60c92f99 use 'mo' for month ticks to make scale clearer 2012-06-16 01:46:14 +09:00
Damien Elmes
acbb24ccd4 decreasing ivls preset 2012-06-15 02:32:27 +09:00
Damien Elmes
c394886af8 fix nbsp handling in latex 2012-06-15 01:09:16 +09:00
Damien Elmes
4c7f7a7c4b make sure we pass filename as utf8 to sqlite 2012-06-14 08:41:19 +09:00
Damien Elmes
f3a1916c07 replace <div> with spaces in latex 2012-06-14 06:29:25 +09:00
Damien Elmes
4b01c3c82c allow } inside cloze deletions 2012-06-13 00:46:59 +09:00
Damien Elmes
fec37958f4 tweak furigana regex
try to support text like:
今日[きょう]も <font color="#0000ff">元気[げんき]</font>
2012-06-11 22:19:56 +09:00
Damien Elmes
c6cc874011 fix failed+suspended upgrade 2012-06-05 19:30:13 +09:00
Damien Elmes
c8b2b5ff87 look for certs in bundled location 2012-06-03 21:44:04 +09:00
Damien Elmes
3069729776 disable automatic failed card removal
It has caused two issues in the last few days:

- A user thought their failed cards were mysteriously disappearing
- A few users with 1 day+ re-learning steps had thought they hit a bug. What happens is they fail a card on day 1 and its review interval is set to day 2; then a few days later after a few steps, they fail it again and it enters queue 1, but when the queue is rebuilt the steps are discarded because the original review repetition is due.

It might be possible to fix the above, but for 2.0 it seems like the safest bet is to remove this feature, especially as nobody actually asked for it and I just thought it might be handy.
2012-06-03 20:23:11 +09:00
Damien Elmes
19fde43cda when importing make sure to adjust due date for day lrn too 2012-06-03 20:06:33 +09:00
Damien Elmes
f88bc6ff60 don't add files with / \ or : to log 2012-06-02 17:05:00 +09:00
Damien Elmes
a7815856e6 cards/minute stat 2012-05-31 14:48:36 +09:00
Damien Elmes
8fd920fce1 catch upgraderequired response 2012-05-30 16:09:52 +09:00
Damien Elmes
2e233fb86f set reps on fetch so fetch ahead shuffles properly 2012-05-29 11:08:04 +09:00
Damien Elmes
8122c42245 if media is off, don't upgrade it 2012-05-29 08:29:18 +09:00
Damien Elmes
53cd0c5b9f another attempt at ivl graph fix 2012-05-28 21:21:55 +09:00
Damien Elmes
fe35b8cf83 Revert "forcing scale in intervals graph gives incorrect xaxis"
This reverts commit ee691cc608.
2012-05-28 21:17:24 +09:00
Damien Elmes
7458fca33c removed size report in check db 2012-05-28 21:16:27 +09:00
Damien Elmes
229b7d1b22 use primary url 2012-05-28 20:37:25 +09:00
Damien Elmes
af97497747 option to avoid media dir creation 2012-05-28 17:18:12 +09:00
Damien Elmes
7a0f18d2c7 translation hint stripping 2012-05-28 17:17:57 +09:00
Damien Elmes
ee691cc608 forcing scale in intervals graph gives incorrect xaxis 2012-05-27 13:32:59 +09:00
Damien Elmes
315838a56b fix answer buttons on review card 2012-05-27 13:14:58 +09:00
Damien Elmes
b415aa531e possible fix for mplayer video quit 2012-05-27 00:16:26 +09:00
Damien Elmes
c27cc17762 findDupes() and findNotes() 2012-05-27 00:12:26 +09:00
Damien Elmes
eb64794c18 don't force graph size 2012-05-26 19:53:55 +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
312786c9eb don't hide extra stats for buried/suspended 2012-05-26 16:51:12 +09:00
Damien Elmes
d7d0fd5ca9 add separators for GUI, tweak cram option 2012-05-26 15:08:33 +09:00
Damien Elmes
6a04679e72 tweak order 2012-05-26 14:57:56 +09:00
Damien Elmes
1e5e574721 add search for added time 2012-05-26 14:50:45 +09:00
Damien Elmes
84501078e8 factor/ease 2012-05-26 13:15:02 +09:00
Damien Elmes
427ff5a263 change 'important' to template 2012-05-26 13:04:45 +09:00
Damien Elmes
d25e2453a6 catch invalid grouping 2012-05-26 13:00:01 +09:00
Damien Elmes
e80419fb53 fix case insensitive model check 2012-05-25 20:03:57 +09:00
Damien Elmes
f47a1a9d27 fix 'ahead by two days' example 2012-05-25 16:10:32 +09:00
Damien Elmes
21466be03a make sure _ is defined 2012-05-25 12:51:11 +09:00
Damien Elmes
17095ae1fb switch args in rated: search; make ease optional 2012-05-25 11:05:02 +09:00
Damien Elmes
3382af2877 allow empty clozes
instead of considering a cloze note with no clozes marked as invalid, treat it
as the first card and show a warning during review
2012-05-25 09:12:19 +09:00
Damien Elmes
b7d9935b99 add bq/bafmt on upgrade 2012-05-25 08:40:08 +09:00
Damien Elmes
c47b93151b add Thai, Bosnian, Afrikaans, Low German and Occitan 2012-05-25 08:24:48 +09:00
Damien Elmes
812b0b5353 add the ability to get non-dyn deck names 2012-05-25 08:13:04 +09:00
Damien Elmes
97f2665a11 fix terminology differences 2012-05-25 08:12:42 +09:00
Damien Elmes
225196f7d1 run hook on deck/model creation 2012-05-24 18:20:16 +09:00
Damien Elmes
bde4655fa5 warning shouldn't fire if in cram deck 2012-05-24 18:09:52 +09:00
Damien Elmes
fa5fca5941 don't touch due cards either 2012-05-24 18:02:32 +09:00
Damien Elmes
ec1a4f7458 even if failed 2012-05-24 17:51:49 +09:00
Damien Elmes
e3bb4a817e and undue cards have untouched ivl 2012-05-24 17:35:27 +09:00
Damien Elmes
455796f189 when rescheduling off, graduating cards get reset to new 2012-05-24 17:12:12 +09:00
Damien Elmes
d88c307758 presets 2012-05-24 15:26:34 +09:00
Damien Elmes
ba667cc94d fix order following failed order removal 2012-05-24 14:29:05 +09:00
Damien Elmes
dae4c2c453 upgrade decks and conf 2012-05-24 14:10:15 +09:00
Damien Elmes
1d92961e97 maxIvl, ivlFct
- limit ivl on rev and cram scheduling, default to 100 years
- ivlfct -> ivlFct for consistency
2012-05-24 13:49:15 +09:00
Damien Elmes
d6bce7c873 start on filter/cram updates, deck:filtered
- cram decks no longer pull cards from other cram decks, as tests like is:due
  don't make sense on crammed decks
- cram decks now default to not overriding the original deck's steps
- remove obsolote dyn_failed sort order - have to fix this in upgrade
- search/limit/order properties have been merged into a list, in case we may
  want to support multiple queries in the future (eg 10 cards from tag A, 20
  cards from tag B)
- added a resched option to disable boosting/failure - not yet implemented
- added an unused flag to allow cards to persist in the cram deck after
  graduation. implementing this will take some work and won't come in 2.0
- instead of is:filtereddeck, use deck:filtered
2012-05-24 13:38:58 +09:00
Damien Elmes
44b4f18e6c cram decks don't pull from other cram decks anymore 2012-05-24 08:31:58 +09:00
Damien Elmes
090e47eb7b optimize deck:* case 2012-05-24 07:28:14 +09:00
Damien Elmes
942beef5de allow != in properties 2012-05-23 23:07:23 +09:00
Damien Elmes
b63ac7e80d turn off not after application 2012-05-23 20:54:03 +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
ef4ff86f8c support searches for particular ratings 2012-05-23 14:39:30 +09:00
Damien Elmes
3755a8f82d support matches on card properties 2012-05-23 14:18:44 +09:00
Damien Elmes
a76d34dc19 fix error on negated invalid is: 2012-05-23 13:39:25 +09:00
Damien Elmes
3ffb6fd67b add separate toggle to disable scheduling completely in cram deck 2012-05-23 13:36:44 +09:00
Damien Elmes
779ba63b01 remove fmult in favour of home deck's setting 2012-05-23 13:22:57 +09:00
Damien Elmes
56652c5066 remove unused cramRev 2012-05-23 13:16:15 +09:00
Damien Elmes
c236bc8327 don't show hourly perf. graph if few datapoints 2012-05-23 13:08:51 +09:00
Damien Elmes
a84a95cb1a fix ProxyInfo() call 2012-05-23 08:43:38 +09:00
Damien Elmes
bc2112a127 fix availOrds() when conditional expressions have extra text 2012-05-23 08:03:03 +09:00
Damien Elmes
cb24e106e6 make a distinction between cards in learning and relearing on upgrade 2012-05-22 20:58:27 +09:00
Damien Elmes
0fcf36c2a7 fix upgrade of learning cards in 1.2
- interval must be 1+ days
- type must be 2
2012-05-22 20:22:33 +09:00
Damien Elmes
233bf555b4 custom browser q/a columns 2012-05-22 15:37:15 +09:00
Damien Elmes
5aa840e848 handle proxy config in libanki 2012-05-22 14:14:40 +09:00
Damien Elmes
ab5af8c7aa log lapse time as relearn delay if available 2012-05-22 11:17:10 +09:00
Damien Elmes
31cabb6d3f only show interval if review card 2012-05-22 11:04:44 +09:00
Damien Elmes
20c96d50d6 fix countIdx() for lrn day cards 2012-05-22 09:37:36 +09:00