Anki add-on: Edit Field During Review

An Anki add-on to edit a field during review without opening the edit window. ALTERNATIVE VERSION For cloze support and many new features, please see the new version by BlueGreenMagick. Edit Field During Review (Cloze) - https://ankiweb.net/shared/info/385888438 To avoid any conflicts, please uninstall or disable this add-on first. HOW TO USE Open the Card Template and replace {{Field}} with {{edit:Field}}. This is similar to {{type:Foreign Word}} or {{hint:MyField}}. During review click on the field, edit it and click outside of it or press Esc to save it, or press Ctrl+Z to undo any changes. Press Tab or Shift+Tab to switch between different editable fields. And it looks like it's possible to use Ctrl+B (bold), Ctrl+I (italic) and Ctrl+U (underline) shortcuts too. The add-on is very simple and has a limited functionality. The addon just replaces any {{edit:Field}} with <div contenteditable="true">{{Field}}</div> to make it editable. Tag "div" can be replaced with tag "span" to make it inline by updating the add-on's config file (Tools - Add-ons - Edit Field During Review - Config). The relevant post on Reddit - https://www.reddit.com/r/Anki/comments/acvx71/edit_field_during_review OTHER NOTES By default, if the contenteditable field isn't active anymore, it's possible to undo the last edit by using Edit - Undo option. But if the current card has been edited and this option is enabled, it'll be impossible to Undo Review and move back to the previous card. Please edit the add-on's config file and change "undo": true to "undo": false to disable it or maybe open the cards browser and search for rated:1 ( cards answered today ) and maybe sort by the "changed" column ( "changed" tracks the last time changes were made to the card (e.g., when you reviewed the card and the review history and interval were updated) ). The latest version of the add-on should prevent this by making the field to be uneditable, but just in case... Don't use the add-on with cloze fields, don't change {{cloze:Text}} to {{edit:cloze:Text}}, it won't work and some data will be lost after editing, either the text inside clozes will be lost or cloze tags will be lost, and it can only be restored from a backup - https://apps.ankiweb.net/docs/manual.html#backups If you use the add-on with audio fields, the "[sound:...]" tag will be lost after editing. Instead, use the Edit Field During Review (Cloze) - https://ankiweb.net/shared/info/385888438 CHANGELOG 2019-01-05 Initial release ... 2020-10-07 Don't make a field to be editable if it contains sound, cloze or latex tags (Anki 2.1.25+) 2022-08-30 Fix cloze regex to make cloze field uneditable in old Anki versions and Anki 2.1.55 2025-12-11 Make it work with the EditCurrent and Preview windows. SUPPORT ME ON LAVA.TOP If you like my work or have found it useful, consider supporting me at https://app.lava.top/2342402818 It'll be very much appreciated. Thank you. -- N. <kelciour@gmail.com>

GitHub repository: kelciour/edit-field-during-review
Languages: Python