# Deck field option for file import (CSV)

**URL:** <https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275>\
**Category:** Suggestions\
**Created:** [March 12, 2022, 10:43am UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275 "2022-03-12T10:43:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjdduarte](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/cjdduarte/32/29286_2.png) [@cjdduarte](https://forums.ankiweb.net/u/cjdduarte)\
**Post date:** [March 12, 2022, 10:43am UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/1 "2022-03-12T10:43:38Z")

</div>

It will be possible to use the function to import the cards (example: CSV) and use a field to define the deck where the cards are inserted.

Similar to the tag field, but for the deck.  
 ![1](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/83e650c779b3cdb83bf4b90e5f289f366d3d0b5a.jpeg)

![3](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/4b37a4b06e32f61cde383109119990195029b089.jpeg)

---

<div class="post-metadata">

**Author:** ![OldGrantonian](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/oldgrantonian/32/986_2.png) [@OldGrantonian](https://forums.ankiweb.net/u/OldGrantonian)\
**Post date:** [March 13, 2022, 1:47pm UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/2 "2022-03-13T13:47:18Z")

</div>

.  
What exactly is the screenshot showing?

I can see “Import” at the left of the title bar.

But when I do

File \> Import

on myAnki, I see a File Manager window, with a list of .colpkg files which presumably I can import.

What is the significance of the red arrows ?

Thanks  
.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [March 13, 2022, 4:32pm UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/3 "2022-03-13T16:32:57Z")

</div>

@OldGrantonian cjdduarte is suggesting adding a feature that allows specifying the deck the notes will be imported to in the imported text/CSV file instead of using the deck chooser, in a format like this:

```auto
front1 back2 deck_name1
front1 back2 deck_name2
...

```

---

<div class="post-metadata">

**Author:** ![OldGrantonian](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/oldgrantonian/32/986_2.png) [@OldGrantonian](https://forums.ankiweb.net/u/OldGrantonian)\
**Post date:** [March 13, 2022, 5:52pm UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/4 "2022-03-13T17:52:50Z")

</div>

.  
Wow. You divined that just from the screenshot?

Does that window currently exist in Anki? Or is it just a mock-up from a GUI designer, with no code behind ?

I’m aware that “Duarte” do presentations.

Thanks  
.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [March 13, 2022, 6:28pm UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/5 "2022-03-13T18:28:28Z")

</div>

> [@OldGrantonian](#):
>
> Does that window currently exist in Anki? Or is it just a mock-up from a GUI designer, with no code behind ?

It’s shown when choosing a text file in File \> Import.

---

<div class="post-metadata">

**Author:** ![cjdduarte](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/cjdduarte/32/29286_2.png) [@cjdduarte](https://forums.ankiweb.net/u/cjdduarte)\
**Post date:** [March 13, 2022, 11:41pm UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/6 "2022-03-13T23:41:02Z")

</div>

that’s right

😀 😀

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 14, 2022, 4:36am UTC](https://forums.ankiweb.net/t/deck-field-option-for-file-import-csv/18275/7 "2022-03-14T04:36:43Z")

</div>

Added to [refactor import/export code · Issue #1018 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/1018) for consideration
