question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feat] Move note to deck

See original GitHub issue
Not a bug: I forgot to use the `-d` option of `apy add` When I try to add a new card to a sub-deck `Perso::JapaneseOther`, apy fails with the following error:
➜ apy add
reverting to stock json
Traceback (most recent call last):
  File "/home/dori/.local/bin/apy", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/dori/.local/lib/python3.8/site-packages/apy/cli.py", line 116, in add
    notes = a.add_notes_with_editor(tags, model_name, deck)
  File "/home/dori/.local/lib/python3.8/site-packages/apy/anki.py", line 381, in add_notes_with_editor
    return self.add_notes_from_file(tf.name)
  File "/home/dori/.local/lib/python3.8/site-packages/apy/anki.py", line 385, in add_notes_from_file
    return self.add_notes_from_list(markdown_file_to_notes(filename),
  File "/home/dori/.local/lib/python3.8/site-packages/apy/convert.py", line 53, in markdown_file_to_notes
    defaults, notes = _parse_file(filename)
  File "/home/dori/.local/lib/python3.8/site-packages/apy/convert.py", line 154, in _parse_file
    note['fields'][field] = ''
KeyError: 'fields'

It doesn’t appear possible to move existing cards to other decks. Can we have this feature supported?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lervagcommented, Jan 26, 2021

Looks great, thanks a lot!

No problem, thanks for the feature suggestion and sorry for taking all this time making it!

I’ve burnt out last month and not studying much recently, but I’ll get back to it eventually 😃

Ah; Anki burnout is real. My only suggestion, in case you are interested, is to keep things slow. Don’t add too many cards. Keep the review amount small enough so it does not become a burden. I guess the target amount is very subjective. I personally avoid having more than 100 cards per day to review, and I don’t add more than between 25 and 75 cards per week.

1reaction
lervagcommented, Jan 25, 2021

I’ve made a first version now. Not sure if you’re still interested, but I think it is a useful feature nonetheless. It is now possible to edit the deck with the option D: Change deck in the review menu, as well as by changing the deck name from Vim while editing a note content.

I think this resolves the issue, but let me know what you think. Perhaps we should also add apy move ... or something similar to allow some sort of batch mode (similar to apy tag).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anki: Suspend, Bury, Mark, Tags, & Decks - YouTube
This video will show you how to create Decks within decks, add tags to your cards and how to ... How to Use...
Read more >
Added notes to the wrong deck, how can I move them ... - Reddit
I was trying to add notes to a deck; I didn't really check, and it turns out I was adding them to the...
Read more >
Notes - Haiku Deck User Guide
With Notes, you can round out your deck with supplemental details and links in public notes, and be prepared with presenter scripts and...
Read more >
Movement Deck Guide: Double Feature - Pool 2 and Pool 3 ...
On Reveal: If your opponent played cards here this turn, move them randomly. view card details. Start a deck. Decks with Juggernaut. These...
Read more >
How do I move cards between decks? - Anki FAQ
If you want to move cards between profiles, or share cards with other people, you can use Anki's export function to export a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found