jasonwilliams / anki

Anki VSCode Plugin
MIT License
278 stars 32 forks source link

Feature suggestion: define anki cards in a markdown file with tags instead of ## #12

Open songguoqiang opened 4 years ago

songguoqiang commented 4 years ago

Jason, thanks for making this tool. It's super useful for my note-taking workflow!

Just a thought: right now this tool submits the whole markdown file to anki (i.e. everything under the ## ). This works if I create dedicated markdown files with anki cards only, but if my markdown files contain other content than anki cards, this does not work well.

There is another tool called Neuracache that imports flashcards from markdown files and they search for flashcards with some tags in the files: https://www.youtube.com/watch?v=RsV3qMUkgoA&ab_channel=IdeaRoots

Something like this could be a useful feature for this vscode plugin as well.

jasonwilliams commented 4 years ago

Thanks for raising, i will take a look at this when i have time

jasonwilliams commented 3 years ago

@songguoqiang looks like they use --- as a delimiter is that correct?

imalightbulb commented 3 years ago

Would like this to be implemented as well to enable card creation within notes. (instead of creating headers and interrupting, and I need to create a file just for anki cards) Yes. Neuracache do uses --- as a delimiter to separate cards I think. However, I think a more suitable design is to use tags with -, so we can create cards under headers. (similar to logseq)

For example, you type

# TITLE or HEADER

- What is this fruit? #card 
   - It's an apple
- Q2 #card 
   - A2   

to create cards. For the deck it pops up a window to let user choose which deck they want to upload current file's cards at (independent from the title). I'm not sure if it's possible or not though, also other designs/suggestions to this are welcomed.