!!! NOTE !!!
I have used AI to vibecode this addon. As far as I know, everything works good. If there are any issues, please contact me at kaantrash@proton.me.
I use this addon to auto-export my already reviewed cards, to then let an AI agent read the newest export and generate lessons for me using my known cards.
Again: This is purely vibe coded, I do not take credits for this.
Auto Export Notes to TXT - Anki Add-on
Automatically export your Anki notes to text files when Anki starts. Features a comprehensive settings GUI with deck dropdown, tag selection, preview, and manual export.
Features
- β
Auto-export on startup - Automatically exports notes every time you open Anki
- β
Deck dropdown - Select from all your decks automatically
- β
Card state filtering - Filter by new/learning/review/due/suspended/buried
- β
Clickable tag selection - Choose tags from a list with checkboxes
- β
Custom output directory - Browse and select export location
- β
Use default directory toggle - Quickly switch between custom and default
- β
Flexible filenames - Automatic timestamped OR manual fixed filenames
- β
Export preview - See which notes will be exported before exporting
- β
Manual export button - Export on demand with overwrite confirmation
- β
Two export formats - Simple (TSV-like) or detailed (human-readable)
- β
Settings persistence - All settings are saved automatically
Installation
Method 1: Manual Installation
- Download the add-on files
- Open Anki and go to Tools β Add-ons
- Click "View Files" button to open the add-ons folder
- Create a new folder named
auto_export_notes
- Copy the downloaded files into this folder
- Restart Anki
Quick Start
- After installation, go to Tools β Auto Export Notes - Settings
- Configure your export settings:
- Select a deck from the dropdown (or "All Decks")
- Choose card state (e.g., "Review Cards Only" for already studied cards)
- Select tags to include (optional)
- Choose output directory or use default
- Set filename mode (auto or manual)
- Click "Save Settings"
- The add-on will auto-export on next Anki startup
Settings Explained
General Tab
| Setting | Description |
|---------|-------------|
| Enable auto-export | Turn auto-export on/off |
| Show notification | Show popup after auto-export |
| Export Format | Simple (TSV) or Detailed (readable) |
| Include HTML | Keep HTML tags in output |
| Include tags | Add note tags to export |
Location Tab
| Setting | Description |
|---------|-------------|
| Use default directory | Use ~/AnkiExports (toggle on/off) |
| Browse... | Select custom output folder |
| Filename Mode | Auto (timestamped) or Manual (fixed) |
Filters Tab
| Setting | Description |
|---------|-------------|
| Deck | Select from all your decks |
| Card State | All/New/Learning/Review/Due/Suspended |
| Tags | Click checkboxes to select tags |
| Tag Logic | OR (any) or AND (all) |
| Exclude Tags | Comma-separated tags to exclude |
Using the Preview Feature
Click "Preview Export" to see a list of notes that match your current filters:
- Shows first 100 matching notes
- Displays deck, first field, and tags
- Helps you verify filters before exporting
Manual Export
Click "Export Now" to export immediately:
- Uses current settings
- Overwrites existing files (no confirmation needed)
- Shows success/error message
Example: Export Reviewed Cards from "Kaishi 1.5k"
- Open Tools β Auto Export Notes - Settings
- In Filters tab:
- Deck: Select "Kaishi 1.5k" from dropdown
- Card State: Select "Review Cards Only (Graduated)"
- In Location tab:
- Choose your preferred output directory
- Set filename mode (e.g., auto with timestamp)
- Click "Save Settings"
On next Anki startup, only your reviewed cards from Kaishi 1.5k will be exported.
File Locations
Add-on Folder
- Windows:
%APPDATA%\Anki2\addons21\auto_export_notes
- Mac:
~/Library/Application Support/Anki2/addons21/auto_export_notes
- Linux:
~/.local/share/Anki2/addons21/auto_export_notes
Default Export Directory
- All platforms:
~/AnkiExports (in your home directory)
Troubleshooting
"No notes found" message
- Check that your deck name is correct
- Verify card state filter
- Try with "All Decks" and "All Cards" first
Export not happening on startup
- Check that Enable auto-export is checked
- Verify the addon is enabled in Tools β Add-ons
Can't find my export file
- Check your configured output directory
- Look in
~/AnkiExports if using default
- Check filename mode (auto adds timestamp)
Changelog
Version 2.0.0
- Complete GUI redesign with tabs
- Deck dropdown (auto-populated from Anki)
- Clickable tag selection
- Export preview feature
- Manual export button with overwrite
- Default directory toggle
- Settings persistence improvements
Version 1.2.0
- Added card state filtering
Version 1.1.0
- Added manual filename mode
Version 1.0.0
Anki Search Syntax Reference
The add-on uses Anki's built-in search syntax:
Deck Search
deck:"My Deck" - Specific deck
deck:"Parent::Child" - Subdeck
deck:"Language::*" - All subdecks of "Language"
Tag Search
tag:mytag - Has specific tag
tag:parent::child - Hierarchical tag
-tag:mytag - Does NOT have tag
Combining Searches
- Space between terms = AND
OR between terms = OR
- before term = NOT
Examples:
deck:"Spanish" tag:vocabulary - Vocabulary in Spanish deck
tag:important OR tag:exam - Either important OR exam tagged
deck:"Medical" tag:anatomy -tag:suspended - Anatomy cards in Medical deck, not suspended
Troubleshooting
"No notes found" message
- Check that your deck name is spelled correctly (case-sensitive)
- Verify tag names are correct
- Try leaving deck name and tags empty to export all notes
"Cannot create output directory" error
- Make sure you have write permissions to the specified directory
- Try using a directory in your home folder like
~/AnkiExports
- On Windows, use forward slashes or double backslashes:
C:/Users/Name/Exports or C:\\Users\\Name\\Exports
Export not happening on startup
- Check that Enabled is set to
true in configuration
- Look for error messages in Anki's startup
- Try manual export to see if there are any errors
Wrong notes being exported
- Double-check your deck name (must be exact)
- Verify tag spelling
- Check if you're using OR vs AND logic correctly
File Locations
Add-on Folder
- Windows:
%APPDATA%\\Anki2\\addons21\\auto_export_notes
- Mac:
~/Library/Application Support/Anki2/addons21/auto_export_notes
- Linux:
~/.local/share/Anki2/addons21/auto_export_notes
Default Export Directory
- All platforms:
~/AnkiExports (in your home directory)
Compatibility
- Anki Version: 2.1.50+
- Python: 3.9+
- Platforms: Windows, macOS, Linux
License
MIT License - Feel free to modify and distribute.
Support
If you encounter issues:
- Check the Troubleshooting section
- Contact kaantrash@proton.me
Changelog
Version 1.2.0
- Added card state filtering (new/learning/review/due/suspended/buried)
- Useful for exporting only reviewed cards or due cards
Version 1.1.0
- Added manual filename mode
- Added option to prompt for filename on startup
- Added FilenameDialog for entering custom filenames
Version 1.0.0
- Initial release
- Auto-export on startup
- Deck and tag filtering
- Simple and detailed export formats
- Configuration GUI
- Manual export option