diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-02 23:53:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-02 23:56:00 +0900 |
| commit | abce2aaa274f83f53de2fb88fd81e3da664317fd (patch) | |
| tree | fc5f462434d68e9b6e0f6518c3ed6d40d7895634 /docs/manual/csv-import.md | |
| parent | 2fb6471a685bec1433be3335f377a1a2313e4820 (diff) | |
| download | kioku-abce2aaa274f83f53de2fb88fd81e3da664317fd.tar.gz kioku-abce2aaa274f83f53de2fb88fd81e3da664317fd.tar.zst kioku-abce2aaa274f83f53de2fb88fd81e3da664317fd.zip | |
feat(import): simplify CSV format by removing deck column
Since import is initiated from deck context, the deck is already known
via props. Simplifies CSV format to: note_type,Field1,Field2,...
BREAKING CHANGE: CSV format changed from deck,note_type,... to note_type,...
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/manual/csv-import.md')
| -rw-r--r-- | docs/manual/csv-import.md | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/docs/manual/csv-import.md b/docs/manual/csv-import.md index 6759e54..321a9c6 100644 --- a/docs/manual/csv-import.md +++ b/docs/manual/csv-import.md @@ -16,10 +16,9 @@ Kioku allows you to bulk import notes from CSV files. The first row is the header. Use the following format: ``` -deck,note_type,Field1,Field2,... +note_type,Field1,Field2,... ``` -- **deck**: Deck name (for reference only; import destination is selected in the UI) - **note_type**: Note type name (required) - **Field names**: Field names defined in the note type @@ -28,27 +27,27 @@ deck,note_type,Field1,Field2,... Rows 2 and onwards contain the notes to import. ```csv -deck,note_type,Front,Back -MyDeck,Basic,hello,world -MyDeck,Basic,goodbye,farewell +note_type,Front,Back +Basic,hello,world +Basic,goodbye,farewell ``` ### Example: Basic Note Type ```csv -deck,note_type,Front,Back -Vocabulary,Basic,apple,a round fruit -Vocabulary,Basic,banana,a yellow fruit -Vocabulary,Basic,orange,a citrus fruit +note_type,Front,Back +Basic,apple,a round fruit +Basic,banana,a yellow fruit +Basic,orange,a citrus fruit ``` ### Example: Basic (and reversed card) Note Type ```csv -deck,note_type,Front,Back -Capitals,Basic (and reversed card),Tokyo,Japan -Capitals,Basic (and reversed card),Paris,France -Capitals,Basic (and reversed card),London,United Kingdom +note_type,Front,Back +Basic (and reversed card),Tokyo,Japan +Basic (and reversed card),Paris,France +Basic (and reversed card),London,United Kingdom ``` ## CSV Specification @@ -66,17 +65,17 @@ Kioku's CSV parser is RFC 4180 compliant. Use double quotes (`"`) to include commas or newlines within a field: ```csv -deck,note_type,Front,Back -MyDeck,Basic,"Hello, World!",example with comma -MyDeck,Basic,"Line 1 +note_type,Front,Back +Basic,"Hello, World!",example with comma +Basic,"Line 1 Line 2",example with newline ``` To include a double quote within a field, escape it by doubling: ```csv -deck,note_type,Front,Back -MyDeck,Basic,"He said ""Hello""",example with quotes +note_type,Front,Back +Basic,"He said ""Hello""",example with quotes ``` ## Important Notes |
