Anki/rslib
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
..
benches Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
i18n Add number truncation before back-end translation (#3162) 2024-04-24 02:41:40 +01:00
io Add remove_dir_all() 2023-11-22 17:41:45 +10:00
linkchecker Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
process Corrected minor non-idiomatic snippet of code (#3108) 2024-04-01 11:34:23 +01:00
proto Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
proto_gen Update to Rust 1.80 2024-08-05 15:37:59 +07:00
src Empty cards become undoable (#3386) 2024-08-29 20:06:41 +07:00
sync Add distroless Dockerfile and implement internal health check (#3366) 2024-08-29 17:05:33 +07:00
tests/support move linkchecker into separate crate 2021-12-20 17:27:43 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
bench.sh Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
build.rs Fix building outside workspace 2023-07-02 18:22:44 +10:00
Cargo.toml Update axum/reqwest for hyper 1.0 2024-07-06 18:45:32 +07:00
README.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
rust_interface.rs Update nightly formatter 2023-09-02 16:13:50 +10:00

Anki's Rust code.