glutanimate / batch-editing

Batch Editing add-on for Anki
https://ankiweb.net/shared/info/291119185
Other
15 stars 7 forks source link

Please add ability to insert number sequence into fields #15

Open happycamper78 opened 4 years ago

happycamper78 commented 4 years ago

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Problem case

Many Anki users (including myself) need to change the order in which cards are listed by creation date, either to group them thematically within a deck or to control the order in which they are printed using Add-ons such as your wonderful PDF Glossary Exporter. To change the order in which cards are listed by creation date one can simply add a sequential number to the cards in its own field (i.e. first card has number 1, second card has number 2, etc.), sort by this number field and then change the numbers (e.g. if card number 4 should be placed after number 2, change number 4 into 2.1, etc.) to bring the cards into the correct order. Finally the Change Card Creation times add-on by Daniel Elmes can be applied to the cards in their new order https://ankiweb.net/shared/info/217650262, which effectively changes the order in which cards are listed when sorted by creation date. The Problem is that entering the number sequence into the fields is laborious if done by hand, and could be done much more quickly if automated.

Solution

The solution is to add an additional function to your add-on, that inserts a progressive number sequence across the cards of a deck into a particular field. It already has the function to clear those numbers when the reordering is done, by simply replacing the content of fields with empty.