Anki add-on: Evenly spread tomorrow's due cards over the card's days.   將明日到期卡片平均分配到卡片天數中。

Code Explanation This script is a custom Anki plugin designed to help users manage their study workload by rescheduling due cards from a selected deck . It allows users to defer cards due tomorrow and randomly distribute them across future days. Key Features Retrieve Deck Names : The function get_decks() fetches all the deck names in the current Anki collection, making them available for selection. Deck Selection : Users are prompted to select a specific deck for rescheduling. If no deck is chosen, the operation is aborted. Rescheduling Cards : The plugin identifies cards due tomorrow (based on the due field) from the selected deck and reschedules them to random future dates within a specific range (e.g., 1 to N days, where N is the total number of cards). Progress Bar : A progress bar is displayed during the rescheduling process, showing real-time updates. Users can cancel the operation at any time. Rescheduling Log : After the operation, a detailed log of the rescheduled cards (including their new due dates) is shown in a popup for user reference. Quick Access Button : A button named "Reschedule Overdue Cards in Selected Deck" is added to the Anki toolbar for easy access. How It Works Installation : Save the script as __init__.py in a new folder under the Anki add-ons directory ( addons21/<YourAddonFolder>/ ). Replace <YourAddonFolder> with a folder name of your choice, e.g., RescheduleDeckWithLog . Usage : Restart Anki to load the plugin. Click the Reschedule Overdue Cards in Selected Deck button in the toolbar. Workflow : Select a deck from the available options. The plugin will find cards due tomorrow in the selected deck. It will randomly distribute these cards across future days (up to the total number of cards). The progress bar tracks the rescheduling process, and users can cancel if needed. After completion, the plugin displays a log of all rescheduled cards and their new due dates. Advantages of the Plugin Automation : Automatically reschedules cards, reducing manual intervention and effort. Random Distribution : Ensures a balanced and flexible study schedule by randomly spreading cards over a range of future days. User-Friendly Features : A progress bar provides transparency and control during the operation. A cancellation option ensures users can halt the process if necessary. Compatibility : Fully compatible with the latest versions of Anki, Python 3.9, and Qt6. This plugin is a useful tool for Anki users seeking to manage their card backlog efficiently. If you have any questions or need further customization, feel free to ask! If you can, please sponsor me, thank you very much ↓ ↓ ↓ ↓ ↓ https://paypal.me/iangogo722?country.x=TW&locale.x=zh_TW :;,｡･★Thanks(◎≧v≦)人(≧v≦●)Thanks☆･:.,;