Giter VIP home page Giter VIP logo

Comments (13)

kastidad avatar kastidad commented on September 17, 2024 1

Hi!

Sorry for the delay.

I tested all new functions in v006 and it seems to be working fine. Obviously for the -all functions to work it required the ANKI_DECK line to be on top of the file and not just on each entry. Without that it doesn't work.

Also I tested the -delete- functions and it's working pretty neatly, so GREAT JOB!!!

I hope in the future I could write some emacs app but elisp tutorials don't seem to touch on important details. How do you know which version of Emacs is required and which libraries do you need for writing your app?

Anyway thanks for org-anki and best regards!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

Thanks for reporting! Updates should work as well -- what version of Anki and AnkiConnect are you running?

from org-anki.

kastidad avatar kastidad commented on September 17, 2024

Hi, Thanks for your response!

I'm actually not sure about a couple of things:

1- You mean Updating the Card is a feature already present in org-anki? ...that for some reason is not working on my end?

Or did I misundestood?

2- How can I find out AnkiConnect version? :) .
I know it's the last one because not long ago it asked for an update and in general I keep all Anki's Add-ons updated.

My version of Anki is 2.1.38 @linux-x64 and I'm using Doom-Emacs latest.

Many thanks!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

Yes, the feature is already present. I've tried to fix the issue with version 0.0.5 4f2fb3a, please see if it helps!

As for the reason it seems AnkiConnect has added type hints here, but for me they are not enforced -- I suspect due to the python version used. python --version gets me Python 2.7.18 and python3 --version is Python 3.8.9, what do you get?

from org-anki.

kastidad avatar kastidad commented on September 17, 2024

Thank you very much!!!

For some reason when trying to update org-anki through Doom's ~/.emacs.d/bin/doom sync -u didn't work out well so I checked Melpa in case the update haven't been uploaded there but there it was...

So I just downloaded the new org-anki.el file to replace the old one but still no cigar as it complained about async-await when trying to sync-entry.

In the end I just (require-d these 2 new deps so Doom would download them directly and BINGO!
I just added these lines to package.el (this is just for Doom, don't know about other Emacses...):

(package! org-anki)
(package! cl-lib)
(package! async-await)

Anyway I tried updating a few cards and it seems to be working Really-Well.

Many thanks again brother!!!

from org-anki.

kastidad avatar kastidad commented on September 17, 2024

BTW python version is 3.9.5 👍

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

Thanks for reporting the bug!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

@kastidad I've pushed a new version (v0.0.6) -- if you have time then please check if everything still works for you!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

How do you know which version of Emacs is required and which libraries do you need for writing your app?

If you mean dependency versions then package-lint helps.

But other than that, it's the elisp documentation, and for non-included packages searching melpa and looking at the download numbers.

Another method has been to look at the dependencies of popular packages, e.g if I'm going to depend on org-mode anyway then I might as well use those when needed (when I don't have my own preferences).

But yes, it's not straight-forward to find what you need.

from org-anki.

kastidad avatar kastidad commented on September 17, 2024

Hi!

I did further testing of v0.0.6 and although it seems to be working fine, it has lost something that was present on previous versions but it's absent now that might be a usability problem.

In previous version(s) when modifying/correcting already created cards, if one has the card open in Anki and modifies its content with Emacs, IMMEDIATELY after syncing you could go back to Anki and notice the change you just made.

But now that change is not reflected UNTIL next time you open the card --whether is while reviewing it again or through the Anki's Browser.

So if one is reviewing/correcting the card and makes some change(s), usually to be sure the change was taken or that one didn't forgot to sync the entry (like making the changes then obliviously forgetting to sync), in the previous version it was just a matter of going back to Anki to notice the changes that were just synced.

Now that change is NOT reflected and one is required to answer the card first (with something like Again, Hard to see it soon), then go through other cards until next time this card is back and ONLY then you can verify your changes.

I don't know if you understand me or if my writing was confusing. Please ask me if that's the case.

I'll try to adapt to this new behaviour as for now I'm memorizing new material so the history and intervals are not long, but I can see that being a problem for material that it's to be reviewed much later than just 1/2 days, in which case I might return to the previous version to not lose the record/history of reviews.

Thanks!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

This is a known issue and it was present before: having the card browser open messes up using AnkiConnect, so just close it before syncing cards.

The issue is here from that comment onward FooSoft/anki-connect#82 (comment)

from org-anki.

kastidad avatar kastidad commented on September 17, 2024

Hi!

Thanks for your response, but I meant that while having Anki's reviewing interface open, or in other words being in the middle of reviewing the day's decks --I actually don't use the card browser, just very occasionally.

In version 0.0.5, while I was reviewing with Anki, and let's say I have Emacs & Anki side-by-side, when I see that the present Anki card was not optimally formulated, I modified it in Emacs, and having both windows visible, immediately after syncing I would see the change in front of my eyes.

Now with v0.0.6 that's not possible so I have to answer "Again" and ONLY next time the card appears back I could verify my changes, but doing so means losing the history/record for those cards.

Thanks!

from org-anki.

eyeinsky avatar eyeinsky commented on September 17, 2024

Hmm, alright. I switched to using the multi API call even when updating a single note, but now given this I'll switch back -- thanks for this feedback! Added new issue here #19.

from org-anki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.