mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 08:37:11 -05:00
Add forget card to review context "more" menu (#1642)
* Add forget card to review context more menu * Add to contributors
This commit is contained in:
parent
f61126a40c
commit
1e59ad6200
2 changed files with 10 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ Vova Selin <vselin12@gmail.com>
|
|||
qxo <49526356@qq.com>
|
||||
Spooghetti420 <github.com/spooghetti420>
|
||||
Danish Prakash <github.com/danishprakash>
|
||||
Araceli Yanez <github.com/aracelix>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ from aqt.operations.scheduling import (
|
|||
answer_card,
|
||||
bury_cards,
|
||||
bury_notes,
|
||||
forget_cards,
|
||||
set_due_date_dialog,
|
||||
suspend_cards,
|
||||
suspend_note,
|
||||
|
|
@ -459,6 +460,7 @@ class Reviewer:
|
|||
("-", self.bury_current_card),
|
||||
("!", self.suspend_current_note),
|
||||
("@", self.suspend_current_card),
|
||||
("Ctrl+Alt+N", self.forget_current_card),
|
||||
("Ctrl+Alt+E", self.on_create_copy),
|
||||
("Ctrl+Delete", self.delete_current_note),
|
||||
("Ctrl+Shift+D", self.on_set_due),
|
||||
|
|
@ -915,6 +917,7 @@ time = %(time)d;
|
|||
],
|
||||
],
|
||||
[tr.studying_bury_card(), "-", self.bury_current_card],
|
||||
[tr.actions_forget_card(), "Ctrl+Alt+N", self.forget_current_card],
|
||||
[
|
||||
tr.actions_with_ellipsis(action=tr.actions_set_due_date()),
|
||||
"Ctrl+Shift+D",
|
||||
|
|
@ -1053,6 +1056,12 @@ time = %(time)d;
|
|||
lambda res: tooltip(tr.studying_cards_buried(count=res.count))
|
||||
).run_in_background()
|
||||
|
||||
def forget_current_card(self) -> None:
|
||||
forget_cards(
|
||||
parent=self.mw,
|
||||
card_ids=[self.card.id],
|
||||
).run_in_background()
|
||||
|
||||
def on_create_copy(self) -> None:
|
||||
if self.card:
|
||||
aqt.dialogs.open("AddCards", self.mw).set_note(
|
||||
|
|
|
|||
Loading…
Reference in a new issue