Update Notes from Markdown Files#112
Conversation
|
I'll look at this when I get the time - probably later today or tomorrow. |
Wow, it seems you've done a lot of useful work here! A minor comment: if you were to submit some of those things as smaller PR's it would have been easier to review it and merge parts of it faster. In the present case, I will need to do a proper review of all of it. That's perfectly fine for me and I look forward to doing it, but I can't make any promise on how fast I will get around to looking at all of it. In the mean time, I noticed that the lint step failed, so feel free to fix that.
I think this sounds very good! I also started to be curious if we should add some type of export functionality that made it possible to first export, then later sync between the markdown file and the anki deck from the exported file. Although, I'm not sure how smart that would be. I have close to 10000 notes, and I'm not sure I would want to risk failing a sync with this.
Neat!
Very good!
Just curious: This means that in your workflow, you would manually add the note IDs to your markdown files after adding them, right? I think this entire thing would be even more neat if we could somehow make that step redundant by having
I will be glad to help here. |
|
By the way, I propose that you rebase your work on top of the latest master - either with |
Implements a new feature to update existing notes from Markdown files by specifying note ID (nid) or card ID (cid). Also fixes tag handling to properly merge global and note-specific tags.
c63a173 to
78313e2
Compare
|
|
Thanks, this is starting to look very good! Some follow-up comments:
|
|
Yes, you are correct on both occasions - thanks and i have addressed them here. |
Great!
No, I don't mind - feel free to send an email. :) |
|
The last thing now: I think we should consider if we really want both of the cli commands If I'm right, then I think we should also consider to simplify the Finally, and less importantly, we should consider to update the zsh completion script in |
|
Very good work! This looks good to me and I'll be glad to merge now. But before I do, I just want to double check that you agree. |
|
Thanks! I agree and hope others find this useful 😄 |
|
Great; and again, thanks for helping out and contributing! It's appreciated! |
This is the start of a PR that aims to add a new feature that allows users to update existing notes from Markdown files. The implementation includes:
New
update_notes_from_filemethod inAnkiclass:New CLI command
update-from-file:New tag handling:
Note editing:
Added tests:
Example Usage
Running apy update-from-file example.md will update the existing note with ID 1619153168151 and create a new note, both with the common tags applied.
Implementation Details
This feature makes batch editing of existing notes more convenient
However, I was very unsure on type-checking the code, this currently fails and I will need your help here please :)