anki/ftl/core
Damien Elmes e364b36dc4 experiment with preserving search when resetting
Up until now, we've been forcing a new search whenever reset is called.
The primary reason was that the card list display routines did not expect
a card or note to have been removed. By updating the model to show
"(deleted)" when a card or note is missing, we no longer have to repeat
the search.

This has a few advantages:

- Searches, especially complex ones, can be slow to execute. When we
perform them after every operation like a delete, it can make Anki feel
sluggish.
- The fact that notes have been deleted becomes more obvious - some users
found it easy to miss the "deleted" pop-up in the past.

This change does not just affect deletions, as many other operations
trigger a reset as well. In the past, when using 'set due date' in the
review screen for example, it caused an ugly flicker in the browser screen,
and could be slow when the current search couldn't be quickly redone.

The disadvantage of this approach is that the displayed content may
not reflect the specified search, which has the potential to be confusing.
But if that turns out to be a problem, it could be (partly) alleviated by
displaying a refresh button next to the search bar when the search may
need to be refreshed.

Feedback welcome!
2021-03-19 19:45:21 +10:00
..
actions.ftl Remove edit mode 2021-03-08 11:55:15 +01:00
adding.ftl
browsing.ftl experiment with preserving search when resetting 2021-03-19 19:45:21 +10:00
card-stats.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
card-template-rendering.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
card-templates.ftl update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
custom-study.ftl
database-check.ftl
deck-config.ftl add markdown flag for deck description 2021-02-09 18:47:19 +10:00
decks.ftl Remove prompt when deleting from deckbrowser 2021-03-11 10:28:23 +01:00
editing.ftl
empty-cards.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
errors.ftl catch attempts to nest under a filtered deck; don't show traceback 2021-03-01 09:58:12 +10:00
exporting.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
fields.ftl fix ftl formatting 2021-01-04 13:27:35 +10:00
findreplace.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
importing.ftl update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
media-check.ftl avoid using literal 1 in English translations 2020-12-18 10:14:19 +10:00
media.ftl remove format separator from recording string 2020-12-16 19:44:47 +10:00
network.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
notetypes.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
preferences.ftl rework v2 scheduler upgrade; drop downgrade 2021-02-21 15:50:41 +10:00
profiles.ftl Set up default language before loading profile 2020-11-21 05:29:23 +03:00
scheduling.ftl fix 'forgot card' translation string 2021-03-10 12:03:37 +10:00
search.ftl Add button in dynDeckConf to search in browser 2021-02-01 13:55:03 +01:00
statistics.ftl show actual error when graphData fails 2021-01-29 14:39:05 +10:00
studying.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
sync.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
undo.ftl make 'forget card' undoable; remove checkpoint() in set_due_date 2021-03-12 16:13:50 +10:00