I created an addon to clear all fields in the Add dialog. Any feedback or questions are welcome here.
Hello. I have a feature request. Say I clear all fiends using the add-on. Then I change my mind. I would like to be able to use the undo shortcut (ctrl + z) to un-clear the fields. At the moment, this doesn’t work. Would this be possible, please?
Updated. Let me know if it wouldn’t work.
Hello. Thanks for the reply and update. However, unfortunately, I am not able to use ctrl + z to undo. This is still true if I disable all other add-ons.
Two things. First, the shortkey can be configured in the options and is set to Ctrl+3 by default. Second, I tried to set it to Ctrl+Z, but that seems to conflict with Anki’s default bindings. Setting it to Ctrl+Shift+Z works just fine though.
Ah yes, sorry, I didn’t realise it was a configurable shortcut. That’s great, thank you ![]()
The keyboard shortcuts do not work in the latest anki windows version. However, manually clicking the icon does the job, and that itself is very helpful. Can you please help with an update that addresses the shortcut problem? Thank you!
Both the macOS and Windows version work for me. Have you checked Add-ons>Clear all fields>Config? This is mine:
{
"Clear_fields": "Ctrl+1",
"Clear_fields_and_tags": "Ctrl+2",
"Clear_fields_and_tags_icon": "trashall.png",
"Clear_fields_icon": "trash.png",
"Clear_stickies": "Shift+F9",
"Clear_stickies_icon": "trashsticky.png",
"Undo": "Ctrl+3",
"Undo_icon": "undo.png"
}
HelIo! I downloaded the plugin and really like the functionality. However, I didn’t particularly like it creating 4 new buttons, so I played with the code and changed/added the following: 1) The option to have just 1 button with a dropdown menu instead of 4 buttons, 2) ability to hide any button, 3) cursor is reset to first field when clearing the card, 4) more readable config.json.
If the original author would like, I could provide the updated code.