# Text list of Decks

**URL:** <https://forums.ankiweb.net/t/text-list-of-decks/47099>\
**Category:** Suggestions\
**Created:** [July 15, 2024, 7:00pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099 "2024-07-15T19:00:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sag](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sag](https://forums.ankiweb.net/u/Sag)\
**Post date:** [July 15, 2024, 7:00pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/1 "2024-07-15T19:00:39Z")

</div>

Many thanks to all who have contributed here.

I would like to be able to generate a plain text or otherwise text based list of my current decks.

Forgive me if I have missed it somewhere. As it is it does not seem possible to obtain a text list without a lot of effort. It seems impossible to copy and paste or otherwise obtain this text in a simple way. Would be grateful if this was a feature or add-on. Many thanks.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 15, 2024, 7:13pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/2 "2024-07-15T19:13:10Z")

</div>

I can’t understand what you want and what you’re offering.

[Text Files](https://docs.ankiweb.net/exporting.html#text-files)

[Printing cards in your collection](https://faqs.ankiweb.net/printing-cards-in-your-collection.html#printing-cards-in-your-collection)

---

<div class="post-metadata">

**Author:** ![Sag](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sag](https://forums.ankiweb.net/u/Sag)\
**Post date:** [July 15, 2024, 7:16pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/3 "2024-07-15T19:16:57Z")

</div>

I’m asking if there is a way to obtain a list of my current decks in text form. Not the text on the cards but a text list of all the decks in my collection.

---

<div class="post-metadata">

**Author:** ![jhhr](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jhhr/32/21339_2.png) [@jhhr](https://forums.ankiweb.net/u/jhhr)\
**Post date:** [July 16, 2024, 7:17am UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/4 "2024-07-16T07:17:19Z")

</div>

Open the [debug console](https://docs.ankiweb.net/misc.html#debug-console) in Anki and the run the below code:

```auto
for deck in mw.col.decks.all_names_and_ids():
  print(deck.name)

```

---

<div class="post-metadata">

**Author:** ![Sag](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sag](https://forums.ankiweb.net/u/Sag)\
**Post date:** [July 16, 2024, 12:51pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/5 "2024-07-16T12:51:19Z")

</div>

Thank you jhhr 🙏  
That works really well.

Can I be the only one who wants to list out my decks and write a description of their contents?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 16, 2024, 6:23pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/6 "2024-07-16T18:23:23Z")

</div>

I haven’t heard this requested as a need before. It seems like deck names can be whatever you want, so for most users, there might not be a need for a lot of further description to understand them.

---

<div class="post-metadata">

**Author:** ![Sag](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sag](https://forums.ankiweb.net/u/Sag)\
**Post date:** [July 16, 2024, 7:53pm UTC](https://forums.ankiweb.net/t/text-list-of-decks/47099/7 "2024-07-16T19:53:53Z")

</div>

I’m very grateful for jhhr’s help in providing a script that lists the decks in my collection.

It might be a little niche. Some of my decks have very long titles as it is so I’m using abbreviations.

Listing is really to help with the development of the content, so I can add a very detailed definition as well as including any other notes for that purpose.
