Bug: GODMODE: faster shortcuts and Cloze switching interfering with scheduler in 2.1

Johnathan's Avatar

Johnathan

07 Jul, 2019 09:23 PM

https://ankiweb.net/shared/info/1508677152

This addon is interfering with the scheduler. Here is a thread about the exact problems it is causing and how it was solved. https://old.reddit.com/r/Anki/comments/ca9pv4/something_is_off_about_steps_in_anki_21_what_is_it/

  1. 1 Posted by Joseph on 17 Jul, 2019 07:30 PM

    Joseph's Avatar

    Hey there!

    I'm the creator of that addon. I happened to find this page through luck, but thanks for bringing this bug to my attention.

    I will make a note on the addon page, but I'm not sure of a solution.

    --Joseph

  2. 2 Posted by Joseph on 18 Jul, 2019 07:41 AM

    Joseph's Avatar

    Update: I uploaded a fix.

    Problem was with keyboard shortcut remapping not being as expected, rather than interfering with scheduler.

  3. 3 Posted by Tanner on 25 Jan, 2020 11:02 PM

    Tanner's Avatar

    Hi I'm struggling to configure the old ctrl + Enter mode (that adds the card into the deck) into the current (updated) add-on. I love the current concept, and it is working great, I'm just not very skilled at manipulating the programmed controls to benefit my needs

  4. 4 Posted by Joseph on 26 Jan, 2020 03:27 AM

    Joseph's Avatar

    Hey Tanner, do you mean that you'd like to change the shortcut for adding (finalizing) a card? If so, the addon doesn't have that option.

  5. 5 Posted by Tanner Waterman on 26 Jan, 2020 03:52 AM

    Tanner Waterman's Avatar

    Thanks for the quick reply Joseph,

    No, I was just simply trying to use the normal shortcut for adding/finalizing a card, but am presented with this error message when using the add-on.

  6. 6 Posted by Tanner Waterman on 26 Jan, 2020 04:00 AM

    Tanner Waterman's Avatar

    So once I try to use the ctrl + enter shortcut, and get that error message, my Anki no longer lets me add cards until I re-start the app, and disable the add-on. Even just clicking add is disabled

  7. 7 Posted by Joseph on 27 Jan, 2020 05:45 PM

    Joseph's Avatar

    Thanks for posting that screenshot--that helps a lot!

    I think this will solve the problem.
    1. Open Anki to the home screen.
    2. Click Tools on the menu bar all the way on the top of the screen.
    3. Click Manage Note Types.
    4. A list of note types shows up. Rename one of them as Basic and another one as Cloze. Make sure there's only one called Basic and only one called Cloze. There's a button for renaming on the side.
    5. Quit Anki by pressing Command and Q. Then reopen Anki and try adding cards.

    Let me know the results please!

  8. 8 Posted by Tanner Waterman on 27 Jan, 2020 07:04 PM

    Tanner Waterman's Avatar

    Hi Joseph, thanks for the advice, but still not working unfortunately :(

  9. 9 Posted by Joseph on 28 Jan, 2020 06:33 PM

    Joseph's Avatar

    Yikes. Sorry for the trouble--it's odd that I can't replicate this. Before I go ahead and try to rewrite the code, can you try one more thing?

    1. Go to Tools on the top of the home screen and then click Add-ons.
    2. Click on Godmode from the list and then the delete button.
    3. After deleting, click get Addons and paste in: 1508677152
    4. Quit Anki by pressing Command and Q. Then restart.
    5. Try adding cards with the add button or the shortcut Command and A.

    Fingers crossed.

  10. 10 Posted by Tanner Waterman on 28 Jan, 2020 06:58 PM

    Tanner Waterman's Avatar

    Hi Joseph, I’ve done everything you’ve said and I’m still getting this error message :(
    Sorry to be a bother

    -Tanner

  11. 11 Posted by freemanjosh1000 on 28 Jan, 2020 07:29 PM

    freemanjosh1000's Avatar

    Same here on Windows
    Debug info:
    Anki 2.1.19 (3c8690ae) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
    Platform: Windows 10
    Flags: frz=True ao=True sv=2

    Caught exception:
    Traceback (most recent call last):
      File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-22>", line 2, in addCards
      File "lib\site-packages\anki\hooks.py", line 82, in decorator_wrapper
      File "lib\site-packages\anki\hooks.py", line 79, in repl
      File "C:\Users\j.freeman\AppData\Roaming\Anki2\addons21\1508677152\custom_shortcuts.py", line 144, in newAddCards
        if not (basic_note_type and cloze_note_type):
    NameError: name 'basic_note_type' is not defined

    sorry too

  12. 12 Posted by Joseph on 29 Jan, 2020 01:59 AM

    Joseph's Avatar

    Hey guys, I was able to replicate the problem and came up with a fix. Just download the newest version of the add-on and restart Anki.

    Looking forward to hearing everything is now working!

  13. 13 Posted by Tanner Waterman on 29 Jan, 2020 02:09 AM

    Tanner Waterman's Avatar

    YES! Fantastic. I’m sincerely looking forward to using this add-on to save me time. Thank you so much for your help! I will make sure to leave a good review

    -Tanner

  14. 14 Posted by freemanjosh1000 on 29 Jan, 2020 07:43 AM

    freemanjosh1000's Avatar

    Thanks a million

  15. 15 Posted by freemanjosh1000 on 29 Jan, 2020 08:13 AM

    freemanjosh1000's Avatar

    Hi, little problem still. Now it deletes tags :/

  16. 16 Posted by Joseph on 29 Jan, 2020 03:28 PM

    Joseph's Avatar

    Fixed!

  17. 17 Posted by Joseph on 29 Jan, 2020 03:35 PM

    Joseph's Avatar

    Thanks for catching that Josh. I just uploaded a fix.

  18. 18 Posted by freemanjosh1000 on 29 Jan, 2020 05:47 PM

    freemanjosh1000's Avatar

    You rock Joseph. Thanks.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac