Anki add-on: Copy Text Field to Clipboard

Copy Text Field to Clipboard This addon adds a simple but powerful utility to the Anki Browser: the ability to quickly copy the content of a specific field from multiple selected notes directly to your clipboard. It's perfect for when you need to export text for use in a spreadsheet, document, or another application without going through the full export process. Features The addon provides two distinct ways to copy the content, accessible from the right-click context menu in the Browser: Copy Text Field (Plain) Strips HTML: Removes all HTML formatting (like <div> , <b> , etc.) but intelligently preserves Cloze deletion syntax ( {{c1::...}} ) and LaTeX. Adds a Header: Places a customizable header (default: "FLASHCARDS") on the first line. Appends Note ID: Adds the unique Note ID at the end of each note's text, separated by tabs. This makes it easy to reference the original note. Output: Clean, newline-separated text ideal for pasting into spreadsheets (like Excel or Google Sheets) or plain text editors. Copy Text Field (HTML) Preserves Formatting: Copies the raw, untouched HTML content of the field exactly as it is stored in your collection. No Extras: Does not add any header or Note ID. Output: The original HTML, perfect for pasting into another Anki field, an HTML editor, or for backup purposes. Instructions Open the Anki Browser. Select one or more notes. Right-click on the selected notes. Choose either "Copy Text Field (Plain)" or "Copy Text Field (HTML)" from the context menu. The text will be copied to your clipboard. Configuration You can easily change the target field name and the header for the plain text copy. In Anki, go to Tools → Add-ons . Select "Copy Text Field to Clipboard" and click "View Files" . Open the __init__.py file in a text editor. Modify the values in the CONFIG section at the top of the file: # ------------ CONFIG ----------------- FIELD_NAME = "Text" # rename if your field differs HEADER = "FLASHCARDS" # first line for the plain-copy variant # ------------------------------------- Save the file and restart Anki for the changes to take effect. Compatibility This addon is designed for modern Anki versions (2.1.50+ or 23.10+).