Commit Graph

1656 Commits

Author SHA1 Message Date
Damien Elmes
15df699479 preserve ordered lists 2018-01-27 15:26:41 +10:00
Damien Elmes
4dce1befa5 re.escape leaves _ alone in python 3 2018-01-27 15:15:07 +10:00
Damien Elmes
8cceb24857 preserve newlines when pasting plain text 2018-01-26 19:18:24 +10:00
Damien Elmes
ed9110d530 fix unbury op w/ v1 scheduler 2018-01-26 19:05:08 +10:00
Damien Elmes
a6ccae95b6 remove missed format literals 2018-01-24 21:07:06 +10:00
Damien Elmes
2564dd75ee fix error on final step of lapsed card
https://anki.tenderapp.com/discussions/beta-testing/968-experimental-scheduler-in-anki-210beta31#comment_44552449
2018-01-22 12:10:39 +10:00
Damien Elmes
a81932e62c bump version 2018-01-22 11:25:09 +10:00
Damien Elmes
d78176debe fix opening prefs screen in V1 sched 2018-01-22 11:24:45 +10:00
Damien Elmes
bb6844716c linux mpv doesn't understand --input-media-keys 2018-01-21 10:34:29 +10:00
Damien Elmes
6affae1489 bump version 2018-01-20 16:12:09 +10:00
Damien Elmes
d3d61ce93f add option to show day learn cards before reviews 2018-01-20 16:07:57 +10:00
Damien Elmes
b17a0552d0 support customizing day cutoff w/ V2 scheduler 2018-01-20 15:32:52 +10:00
Damien Elmes
651b107b18 make preview delay customizable 2018-01-20 15:26:11 +10:00
Damien Elmes
1343101add fix counts in preview mode
We can't preserve the original queues when in preview mode, as
otherwise the due counts report the remaining steps of cards in
the learning queue, instead of just 1.

Rather than the rather complicated approach of making the learning and
deck list code aware of the current mode we're in, preview mode moves
all cards to the review queue when the filtered deck is built - just as
cards are moved to the new queue in Anki 2.0.x. The reason for the
review queue is that users were frequently confused when cards appeared
as new - hopefully this is slightly less confusing.
2018-01-20 14:22:57 +10:00
Damien Elmes
6bddcc10e6 return to win32 audio driver on windows
fixes various playback issues some users were experiencing
2018-01-20 13:41:12 +10:00
Damien Elmes
fecd1a0354 log traceback in case of sync error 2018-01-20 11:24:01 +10:00
Damien Elmes
6077611646 prevent exceptions when invalid utf-8 in db 2018-01-20 11:23:49 +10:00
Damien Elmes
6113785b2f work around some decks with mod time stored as string 2018-01-19 11:42:06 +10:00
Damien Elmes
118326df1e remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
Damien Elmes
4f0e6561e8 bump version 2018-01-14 19:32:31 +10:00
Damien Elmes
52313fd0bf work around progress dlg hang at startup on osx
with autosync on, when the progress dialog is closed and the main window
appears, it becomes stuck. hiding the dialog instead of closing it
seems to fix this.
2018-01-14 19:29:56 +10:00
Damien Elmes
bff61b95e9 hide second filter for v1 sched 2018-01-14 19:20:01 +10:00
Damien Elmes
b9aa3a3083 fix bad margins in progress dialog 2018-01-14 18:05:43 +10:00
Damien Elmes
b84d3b53af bump version 2018-01-14 17:53:09 +10:00
Damien Elmes
3a059d15b5 check prefs21.db integrity
otherwise some corruption errors only become apparent when trying to
load an individual profile
2018-01-14 17:47:21 +10:00
Damien Elmes
7915dcd1d9 disable syncing and deck exports for v2 sched 2018-01-14 17:35:59 +10:00
Damien Elmes
63d06946a8 extra newline 2018-01-14 17:01:39 +10:00
Damien Elmes
ea82126fcb update tests 2018-01-14 16:58:12 +10:00
Damien Elmes
cf6d85baa4 support sched versions in collection 2018-01-14 16:58:04 +10:00
Damien Elmes
2ebd75ffe7 code in new scheduler to move between versions 2018-01-14 16:57:40 +10:00
Damien Elmes
a585c21082 add old sched code back 2018-01-14 16:55:07 +10:00
Damien Elmes
c56760802c rename new sched code to schedv2.py 2018-01-14 16:54:48 +10:00
Damien Elmes
1e0b97f25b support a second filter in filtered decks 2018-01-14 13:08:38 +10:00
Damien Elmes
a062e1bc29 store day rollover relative to local time 2018-01-14 12:16:53 +10:00
Damien Elmes
be0429479a make sure we log the correct type when card.type=3 2018-01-14 12:16:53 +10:00
Damien Elmes
21023ed3e5 don't fetch reviews in deck order
- fetch reviews from all child decks at once, sorted by due order
- shuffle the gathered cards as we did previously
- review limits on child decks are ignored - only the current deck and
its parents control what the limit is
- to make the deck list consistent with actual counts, we can't sum the
child counts, as the sum in the parent limit>child limit case may not
reflect the actual number of cards that would be presented
2018-01-14 12:16:53 +10:00
Damien Elmes
4e52f43365 distinguish between buried siblings and manually buried cards 2018-01-14 12:16:53 +10:00
Damien Elmes
62c1fa4a17 preserve learning/filtered state when suspending/burying
add new card type of 3 so we can distinguish cards in relearning from
normal reviews
2018-01-14 12:16:53 +10:00
Damien Elmes
ba87fc7736 experiment with simple resched=off case to 'preview mode'
the previous approach meant we weren't able to preserve the card state
exactly when cards were in learning, since we didn't record the step
position prior to cards being moved into the filtered deck.

it also meant the answer buttons needed to change depending on state - 4
for cards in learning/review, but 2 when the card is on the final step
or is a review.

instead, in preview mode cards always have 2 buttons: again will repeat
again after a delay, and good immediately removes the card and restores
it to its previous state.

to accomplish this, we use a separate queue #, as the learn count
always needs to have a 1:1 correspondence to the number of cards
2018-01-14 12:16:53 +10:00
Damien Elmes
575f61c384 tweaks to interval constraining
- move fuzzing into _constrainedIvl() so it's applied prior to limits
like maxIvl

- don't fuzz early reviews, so cards get the same interval if a filtered
deck is rebuilt again
2018-01-14 12:16:53 +10:00
Damien Elmes
765ec0fb36 use the review queue for undue reviews 2018-01-14 12:16:53 +10:00
Damien Elmes
563e93b0ba ensure due reviews+resched off works 2018-01-14 12:16:53 +10:00
Damien Elmes
68445d7243 add test for new position preservation 2018-01-14 12:16:53 +10:00
Damien Elmes
4070f4eef8 schedtest changes, squashed from local branch 2018-01-14 12:16:53 +10:00
Damien Elmes
1c390218fc fixes to progress window
- make sure _shown reset to False on finish()
- ignore calls to .update() after finish() called, which can happen with
async signals in the sync code
2018-01-14 12:16:47 +10:00
Damien Elmes
9bc0e99e2c
Merge pull request #222 from tmiasko/narrow-browser-window
Make it possible to create narrow browser window.
2018-01-13 20:46:25 +10:00
Damien Elmes
ae7200204b
Merge pull request #221 from dubiousjim/patch-1
Factor out definition of context menu in reviewer.py
2018-01-13 20:45:54 +10:00
Tomasz Miąsko
be140c0993 Make it possible to create narrow browser window. 2018-01-12 13:46:14 +01:00
dubiousjim
df1704f578
Factor out definition of context menu in reviewer.py
Handle definition of context menu in same way that shortcutKeys are handled. This makes it easier for add-ons to modify the context menu without needing to re-implement the whole showContextMenu method.
2018-01-07 18:19:49 +01:00
Damien Elmes
c34cd62070 update LICENSE to match source code
https://anki.tenderapp.com/discussions/beta-testing/920-anki-210-beta-26#comment_44446480
2018-01-06 19:07:56 +09:00