原始内容
CSV Importer Plugin for Thymer
A global AppPlugin that imports CSV files into any Thymer collection. One record per row.

Features
- Command palette:
Cmd+P→ "Import CSV to Collection" - Choose target collection (defaults to currently open collection)
- Map CSV columns to: Title, Content, Properties, or Discard
- Deduplicate by unique field (default: title) - last row wins
- Smart defaults for columns named
title,name,body,content,description, or matching property names
Installation
- In Thymer,
Cmd+P→ "Plugins" - Create a new Global Plugin
- Paste contents of
plugin.jsinto Code Editor - Paste contents of
plugin.jsoninto Configuration
Usage
Cmd+P→ "Import CSV to Collection"- Select a CSV file
- Choose target collection
- Configure column mappings
- Click Import
CSV Format
title,description,status,author
My First Item,Some description,active,John Doe
Another Item,More text,pending,Jane Smith
- First row must be headers
- Supports quoted fields with commas and newlines
- Empty titles are skipped
Known Limitations
Setting properties on records from an AppPlugin doesn't work reliably due to SDK limitations. Records are created with correct titles, but property values may not persist.
Files
plugin.js # Plugin source code
plugin.json # Plugin configuration
example.csv # Sample CSV file