nsk
February 22, 2025, 8:38pm
1
Update: Just realized I made my CSV wrong; this report is invalid.
I have the exact same problem as the one linked below. Specifying #notetype:Basic
doesn’t work: When I do Import, the Basic
notetype is not the selected one. Likewise #separator:Comma
doesn’t work: when in the import menu, the selected separator is Colon
.
I am trying to import a TXT file into Anki with a predefined notetype. I have two text files that correspond to 2 Anki decks, their headers look like this:
TXT File #1:
#separator:tab
#html:false
#guid column:1
#tags column:4
#deck:(KR) eohwi
#notetype:Basic
TXT File #2:
#separator:tab
#html:false
#guid column:1
#tags column:4
#deck:(FI) Sanasto
#notetype:Basic (type in the answer)
When I import the TXT files in Anki, Anki seems to ignore the #notetype header, ho…
Anki 24.06.3
1 Like
The reason it is ignored is because the line must be
#separator:Comma
not something like
separator:Comma,,,,,,,,
But you will get those commas if you have more than one column in your csv (and if it’s comma separated).
Seems to be a bug.
(tested with latest main build from source)
1 Like
nsk
February 22, 2025, 9:43pm
3
Thanks. This answer caused me to notice that I actually just messed up my CSV. No problem on the Anki side.
1 Like
Glad it’s solved for you.
The bug exists anyways, so I created a bug report here:
Steps to reproduce
Open LibreOffice Calc and paste the following into it:
#separator:Comma
This is a question. And this is the answer. Test::CSV
This is a question 2. And this is the answer 2. Test::CSV
This is a question 3. And this is the answer 3. Test::CSV
It will look like this:
[anki]
Safe the file as test.csv and make it comma separated:
[anki]
Open Anki.
Import test.csv and notice that anki thinks the file is colon separated:
[anki]
Additional info
The test.csv looks like thi…