Arthur-Milchior / anki-enhanced-cloze

GNU General Public License v3.0
2 stars 1 forks source link

Shortcuts don't work: #14

Open Super2055 opened 4 years ago

Super2055 commented 4 years ago

When I try to create a cloze for a different scentence/word with the Shortcut ctrl-shift-alt-c which should add a cloze that's the same number as the cloze before it, it instead adds a cloze add the end of the text.

for ex I have the text: Hello world: inside cloze one Hello skies: also inside cloze one Hello birds: inside cloze two

First step is make the first cloze with ctrl-shift-c: Hello world: {{c1::inside cloze one}} Hello skies: also inside cloze one Hello birds: inside cloze two

Yay it worked, second step make another cloze 1 for the second line using the shortcut ctrl-shit-alt-c:

What I expect: Hello world: {{c1::inside cloze one}} Hello skies: {{c1::also inside cloze one}} Hello birds: inside cloze two

What I get: Hello world: {{c1::inside cloze one}} Hello skies: also inside cloze one Hello birds: inside cloze two{{c1::}}

Adding a second cloze to the third Hello world: {{c1::inside cloze one}} Hello skies: also inside cloze one Hello birds: {{c2::inside cloze two}}{{c1::}} ~Works normally

Much tears, panic and confusion

Super2055 commented 4 years ago

I tried deleting all the cards I made with the add on, then deleted the add on and reinstalled it and it worked like normal again. I think the problem was that I tried removing the "Note" and "Source" sections by editing the code. It didn't work at all and it ended up breaking the add on. These two sections I don't find at all useful and they just add clutter for me :/ If there was a way I could get rid of them, it'd be great!

EDIT: I take that back, it would recognize the ctrl-shift-alt-c shortcut but it wouldn't register it as a cloze -- It'd ask me to insert a cloze. So I did everything again (deleted source files, reinstalled) and now I'm back to the same problem I had before.