Bỏ qua đến nội dung

Copy Text Field to Clipboard

Chờ xử lý #anki #addon #copy #text #field #clipboard
Unknown
27/10/2025

Cách tải addon Copy Text Field to Clipboard

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1898311754

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1898311754 và copy

2
1

Mô tả chi tiết

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+).


Reviews (3)

👍 2026-02-20

Great. Thank you!

For those who don’t need the note ID, just change line 53 from

lines.append(f"&#123;single_line(clean)&#125;\t\t&#123;note.id&#125;")

to

lines.append(single_line(clean))

👍 2026-02-15

this is great, exactly what I’m looking for

👍 2026-02-03

Does not work