Anki/rslib/src
Arthur Milchior ce2f4136ea
Empty cards become undoable (#3386)
* Empty cards is undoable

If there was a reason for this operation not to be undoable, I can't easily guess it. My main hyposhesis was that the number of deleted card may be too big. But I realized that deleting a deck is undoable and may delete as many note.

As you may know, I realized that only the undoable operations triggered notification in AnkiDroid that we may have to update the UI. And while I just wanted to trigger more notifications, some reviewers thought it would be nicer if the operation were returning a OpChanges. So here it's done. If you would please consider merging it.

I decided to introduce a new string because the closest strings I could find currently are "Empty cards..." and the trailing commas don't seem nice in "undo". And the title, which we may not be able to reuse in all language

* Don't count cards that have already been removed (dae)
2024-08-29 20:06:41 +07:00
..
ankidroid Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
ankihub Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
backend load balancer! (#3230) 2024-08-17 12:50:54 +07:00
card Empty cards become undoable (#3386) 2024-08-29 20:06:41 +07:00
card_rendering Move anki.utils.html_to_text_line() to backend (#2816) 2023-11-09 09:57:23 +10:00
collection Rust 1.73 2023-10-09 19:22:43 +10:00
config load balancer! (#3230) 2024-08-17 12:50:54 +07:00
deckconfig Feat/FSRS-5 (#3298) 2024-07-21 21:02:24 +07:00
decks Increase parent limits in custom study when 'limits start from top' is enabled (#2971) 2024-01-29 13:15:44 +10:00
error Mention missing field's name in CardTypeError (#3225) 2024-06-06 11:20:19 +01:00
i18n Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
image_occlusion Formatting fix 2024-08-01 12:24:38 +07:00
import_export Update to Rust 1.80 2024-08-05 15:37:59 +07:00
media .DS_Store file shown as an unused media file (#3380) 2024-08-29 18:22:23 +07:00
notes Some lint fixes for newer Rust 2024-07-06 18:40:37 +07:00
notetype Fix Renaming note fields not updating custom browser appearance (#3245) 2024-06-24 08:39:56 +01:00
revlog Update to Rust 1.75 2024-01-05 14:28:23 +10:00
scheduler Feat/FSRS Simulator (#3257) 2024-08-22 15:34:19 +07:00
search Update Rust + Rust deps 2024-07-06 18:40:38 +07:00
stats don't ignore buried cards in future due graph (#3368) 2024-08-22 16:53:41 +07:00
storage load balancer! (#3230) 2024-08-17 12:50:54 +07:00
sync Add distroless Dockerfile and implement internal health check (#3366) 2024-08-29 17:05:33 +07:00
tags Fix unused parent tags getting cleared (#3299) 2024-07-21 15:00:39 +07:00
undo Fix maybe_coalesce_note_undo_entry() (#2992) 2024-02-11 16:04:10 +10:00
adding.rs Default to current deck in csv import if settings allow it (#2527) 2023-05-31 13:47:12 +10:00
browser_table.rs Calculate elapsed days for intraday learning cards 2023-12-13 10:18:29 +10:00
cloze.rs Limit cloze nesting level (#3264) 2024-07-10 19:59:31 +07:00
dbcheck.rs Use field tags instead of hard-coding occlusion fields 2023-09-18 10:10:11 +10:00
findreplace.rs Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
latex.rs Fix clippy issues in Rust 1.72 2023-08-25 07:56:38 +10:00
lib.rs Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
links.rs Rework error dialog 2023-11-29 10:25:32 +10:00
log.rs Integrate FSRS into Anki (#2654) 2023-09-16 16:09:26 +10:00
markdown.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
ops.rs Empty cards become undoable (#3386) 2024-08-29 20:06:41 +07:00
preferences.rs load balancer! (#3230) 2024-08-17 12:50:54 +07:00
prelude.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
progress.rs Show total review count when optimizing FSRS parameters (#3027) 2024-02-26 13:27:22 +07:00
serde.rs Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
services.rs Rust 1.73 2023-10-09 19:22:43 +10:00
template.rs Update to Rust 1.75 2024-01-05 14:28:23 +10:00
template_filters.rs Fix clippy issues in Rust 1.72 2023-08-25 07:56:38 +10:00
tests.rs Remove some v3 checks 2023-11-28 14:06:49 +10:00
text.rs Fix regex skipping over all src except the last (#3021) 2024-02-24 15:27:38 +07:00
timestamp.rs Support rescheduling on weight/retention change 2023-10-01 15:20:58 +10:00
typeanswer.rs Fix unescaped HTML in type-in-the-answer (#2658) 2023-09-14 11:34:22 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00