anki/qt/aqt/forms/__init__.py
Damien Elmes 704b5e581a Rework reschedule tool
The old rescheduling dialog's two options have been split into two
separate menu items, "Forget", and "Set Due Date"

For cards that are not review cards, "Set Due Date" behaves like the
old reschedule option, changing the cards into a review card, and
and setting both the interval and due date to the provided number of
days.

When "Set Due Date" is applied to a review card, it no longer resets
the card's interval. Instead, it looks at how much the provided number
of days will change the original interval, and adjusts the interval by
that amount, so that cards that are answered earlier receive a smaller
next interval, and cards that are answered after a longer delay receive
a bonus.

For example, imagine a card was answered on day 5, and given an interval
of 10 days, so it has a due date of day 15.

- if on day 10 the due date is changed to day 12 (today+2), the card
is being scheduled 3 days earlier than it was supposed to be, so the
interval will be adjusted to 7 days.
- and if on day 10 the due date is changed to day 20, the interval will
be changed from 10 days to 15 days.

There is no separate option to reset the interval of a review card, but
it can be accomplished by forgetting the card(s), and then setting the
desired due date.

Other notes:

- Added the action to the review screen as well.
- Set the shortcut to Ctrl+Shift+D, and changed the existing Delete
Tags shortcut to Ctrl+Alt+Shift+A.
2021-02-07 21:57:51 +10:00

41 lines
953 B
Python

from . import about
from . import addcards
from . import addfield
from . import addmodel
from . import addonconf
from . import addons
from . import browser
from . import browserdisp
from . import browseropts
from . import changemap
from . import changemodel
from . import clayout_top
from . import customstudy
from . import dconf
from . import debug
from . import dyndconf
from . import editaddon
from . import editcurrent
from . import edithtml
from . import emptycards
from . import exporting
from . import fields
from . import finddupes
from . import findreplace
from . import getaddons
from . import importing
from . import main
from . import modelopts
from . import models
from . import preferences
from . import preview
from . import profiles
from . import progress
from . import reposition
from . import setgroup
from . import setlang
from . import stats
from . import studydeck
from . import synclog
from . import taglimit
from . import template