Comments (13)
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.
Thanks for reporting! Updates should work as well -- what version of Anki and AnkiConnect are you running?
from org-anki.
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.
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.
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.
BTW python version is 3.9.5
from org-anki.
Thanks for reporting the bug!
from org-anki.
@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.
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.
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.
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.
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.
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)
- Use plain updateNoteFields when updating a single note HOT 4
- Add ability to add file-global tags HOT 3
- Missed dependency - promise HOT 4
- Error when trying to push note to anki - "Cannot create note because it is empty" HOT 4
- Basic+Reversed cards HOT 16
- Add an `org-anki-update-all` command HOT 1
- Importing anki cards to org file HOT 15
- Nested decks support HOT 3
- Add a command that increments the Cloze number HOT 2
- Support the "Extra" field for Cloze cards HOT 1
- Allow HTML tags in notes HOT 2
- Same-level headings are added to the back of the card HOT 1
- Unable to create a card because it's a duplicate (not no ANKI_NOTE_ID is inserted) HOT 6
- How to export sub-headlines? HOT 1
- org-anki-import-deck doesn't handle single quotes properly HOT 3
- Support for multiple lines in card front HOT 6
- org-anki-skip-function isn't being picked up HOT 3
- Creating cards with sub-tags HOT 3
- Emacs 28 get error (wrong-number-of-arguments (3 . 4) 2) HOT 12
- org-anki can't make `ANKI_NOTE_ID` property correctly with `with-current-buffer` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-anki.