49 12
Contact Author Sign in to rate

GODMODE: faster shortcuts and cloze switching

0.01MB. Updated 2020-06-10.
The author has shared 9 other item(s).

Description

This add-on has three features to make using Cloze more efficient: 1. It automatically switches to a Cloze note based on note content. It then switches back to the Basic note type. No button clicks needed. 2. It introduces easier one-handed shortcuts for Cloze. On Windows, these are Control+E and Control+S, for sequential (C1, C2, C3) and repetitive (C1, C2, C2) Cloze deletions respectively. On Mac, use Command instead of Control. E and S were chosen for their ease of use, and they can be thought of as standing for "extra" and "same" Cloze deletions. These shortcuts can be customized:
  • On Anki 2.1, go to Tools>Add-ons>Godmode Cloze>Config.
  • You can also use this add-on to set custom shortcuts for other functions. By default, "jkl;" and "1234" can both be used for review button shortcuts. If on Mac, you can also make some custom shortcuts with this guide.
  • 3. When using the above shortcuts, no extraneous notifications ("tooltips") are shown when making cards. With previous add-ons, if you start to write a Cloze card when the note type is set to Basic, you would get a warning notification, but this add-on makes that unnecessary. However, if you use the default Cloze shortcuts (e.g., Control+Shift+C), you'll still get that notification. COMPATIBILITY This add-on was tested and working on Anki 2.1 for Mac High Sierra. By default, this add-on works with note types named "Basic" and "Cloze." If you have a custom-named note types, you can rename them to Basic and Cloze by going to Tools>Manage Note Types>Rename. By its nature, the add-on Frozen Fields might interfere with switching between note types. You can still use both add-ons together, but unfreeze your Cloze fields before attempting to have this add-on automatically switch between note types. Otherwise when switching note types, Frozen Fields will override the fields. This add-on sometimes interferes with the functionality of others. Two known examples are "Searching, PDF Reading & Note-Taking in Add Dialog" and "Color Confirmation." ======================================================================== CHANGE LOG 2018-10-31: Add-on created. 2019-04-18: Ported to Anki 2.1.   2019-07-18: Fixed a bug in the 2.1 version where rating cards with 1234 was set by default to work like the space bar. 2019-08-17: Fixed a bug in the 2.1 version where Ctrl+E wouldn't make a new Cloze if the Browser window was open. 2019-10-01: Added a line of code in the 2.1 version for compatibility with the Color Confirmation add-on. Solution by MacMarc. 2019-10-02: Over 1000 downloads! Whoo-hoo! 2020-01-29: Fixed a bug that some users were getting when trying to add a card. 2020-06-09: Updated to work with versions above Anki 2.21. Github repository: https://github.com/Joseph-Y/godmode CREDIT Full credit for the automatic note-type switching goes to Hyun Woo Park, Roland Sieker, and Steve AW for their contributions to the add-on called "Automatic switch from Basic to Cloze." This add-on only very slightly modifies their open-source code for that feature. Full credit for the custom shortcuts feature in the Anki 2.1 add-on goes to Liresol, author of the add-on "Customize Keyboard Shortcuts." His code was used with permission. The reason why I incorporated his add-on into mine was to solve the problem of them interfering, given I use both.  Credit also goes to Dmitry Mikheev for his add-on called "space bar cloze," which I consulted for making this add-on for Anki 2.0 The leftover credit goes to Joseph Yasmeh, the author of the remaining code. MY OTHER ADD-ONS Anti-Suck Smart Spacebar Distinct Cards Studied Today Fuller Screen and Fullest Screen

    Download

    As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

    Supported Anki versions:

    To download this add-on, please copy and paste the following code into Anki 2.1:

    1508677152

    If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

    This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

    All Anki 2.1.x Add-Ons Contact Author

    Reviews

    on 1618211246
    Really useful! But isn't there a default option for this? Ctrl + Shift + C and Ctrl + Shift + Alt + C
    on 1617818366
    used to use this and loved it only laptop but just got a new desktop and tried to download and won't even load on there. this sucks- was super convenient
    Comment from author
    Downgrade your Anki version on the new computer and it will work.
    on 1615754011
    Very good!!!
    For people who do not work the Ctrl + S: Disable the addon "Symbols" and the addon "Customize Keyboard Shortcuts" !!! And the keyboard shortcut will work :)
    on 1615712867
    I absolutely love this add-on but after updating anki to the latest version it stopped working
    I really hope you can update it
    on 1615244805
    "Have a question or want to report a problem with an add-on? If so, please go back and click on "Contact Author" instead."

    Can't see how to do that.

    Looks really useful but can't use. Clicking Browse on my deck causes Error/Stop. Posted at github.

    Ok, 2.1.41 didn't work but quick fix to downgrade to 2.1.25, and yeap! It's a keeper. Thanks Joseph!
    Comment from author before post was edited
    Thanks for reporting this issue on Github. Seems to be due to changes with the newest Anki version (2.1.41). I've restricted downloads to newer versions until I can look into this, but it's not a priority for me because I use an older Anki version. To anyone reading this, I'd appreciate any contributions toward a solution on Github.
    on 1615146982
    Of course my favorite add-on was going to have issues with 2.41... Unfortunately, whenever I click on browse there is an error.
    on 1614157414
    I'm not sure why but ctrl+S doesn't do the sequence cloze for me, ctrl+E works though. Please help! Is it maybe because I'm on a windows?
    on 1614082799
    Saves so much time and it actually works, unlike the default shortcut
    on 1614022254
    Amazing!
    on 1613675790
    Works on Mac Catalina 10.15.7. Fantastic idea, I will have to get used to clicking cmd E instead of cmd shift C of course, but definitely worth it! It's like a shortcut that allows you to switch between card modes with a button press. Love it.
    on 1613114636
    Great idea, but why cant I see GODMODE in the type of cards so I can actually use the Ad-on?
    on 1612432671
    works amazingly, saves lots of time
    on 1612028786
    Does not work.
    Comment from author
    Your mother was a hamster, and your father smelt of elderberries.
    on 1610520076
    really helpful!
    on 1609920692
    Works exactly as described. Thanks for making this!
    on 1605306901
    I really needed this!
    on 1604376662
    This add-on works much better than "Customize Keyboard Shortcuts", which I found a little dysfunctional, since their "editor cloze alt" works as if it's also "editor cloze". The only downside for this add-on is that it disables "Color Confirmation", another add-on I love.

    One question: How do I set a keyboard hotkey using the "Control" (⌃) button on the Mac? Since "Ctrl" = "Command" (⌘) key on a Mac.
    Comment from author
    I don't think the Mac Control key can be used for hotkeys in this add-on.
    on 1604365734
    this addon saved me so much time editing cloze numbers and pressing that extra shift key to get the cloze option. wonderful work!
    on 1601621063
    Thanks!
    on 1600526239
    Please consider adding a field that allows us to change the name of the cards that the add-on looks for. I have a basic card type and a cloze note type but they are not named "Basic" and "Cloze". I know I could rename them, but I deliberately renamed them something else.

    Thank you.


    I wish I could give a thumbs neutral.
    Comment from author
    The code file has instructions for easily changing the card names the add-on looks for.
    on 1598726579
    New to Anki. My first addon! It worked! I am in love with cloze and this is going to make my life so much easier in Pharmacy school.

    Thank you to you and the community. I appreciate your work in creation and updates.
    Comment from author
    You're welcome. Good luck!
    on 1598466166
    Needs to be compatible with new Mac OS (MacOS catalina)
    Comment from author
    It is.
    on 1597782343
    Very nice Addon! But when with "Answer Confirmation 21" addon, the answer confirmation doesn't work
    on 1597019733
    Great Job
    on 1595810219
    I was thinking about creating cards as Basic, and then bulk changing note type in the browser. This is better.
    But could you please extend this to cloze overlapper notes?
    on 1594685215
    It works! thanks!
    on 1592268403
    edit: on anki 2.1.23 at least, the "color confirmation" addon does not work if godmode is enabled.

    Thank you, such efficient

    I wanted this to work with the "Cloze (Hide all)" addon, which uses its own note type, so I edited custom_shortcuts.py and replaced all "Cloze" strings with "Cloze (Hide all)". Seems to have worked. I hope nothing broke. It would be nice to be able to just change this in the config.
    Comment from author
    Thank you for reporting that the update doesn't work with Color Confirmation. There was a workaround in the older version and it looks like it broke.
    on 1591792629
    Updated and working fine on Anki 2.1.23 on Catalina
    on 1591761705
    Updated! thumb up
    on 1591517394
    great add on but not working after anki updates. could you update it and create a open source repo so that other people can maintain it as well?
    Comment from author
    Done and done. Link in description.
    on 1591118148
    I'd love to contribute into updating this add-on since I use it almost daily. Please let me help if you don't have the time to do it yourself. I can't find a repo though to the source.
    Will ou share it? It's only fair, since most of it is code of other people's projects. Let the community contribute
    Comment from author
    Great idea. I added a link to the Github repo in description.
    on 1590091117
    Pleeeease update! For 2.1.22
    on 1588869901
    it is a very useful & time-saver
    Edit; please update for the Anki 2.1.22
    on 1588255668
    tive que reinstalar o Anki, pois o mesmo travou na janela de adição de cartões.
    on 1588249693
    Nice add-on ! If looking for an add-on that handles the cloze switching, copy and paste the code from this one to the "customize keyboard shorcuts" add-on on recent version of anki
    on 1588009716
    EDIT: please update to 2.1.22!

    Neat! I really like that you can personalize so many shortcuts. I have been searching for a way to do so for a while!
    I am experiencing a little problem, though: if I set the shortcut for "edit cloze" to anything that begins with "Ctrl+Shift" the shortcut will not work as expected and will instead add a repetitive cloze
    on 1587389263
    Addon stopped working. Please update for Anki Version 2.1.22. Thanks
    on 1585730274
    Not working currently in Anki Versión 2.1.22 (0ecc189a) under Windows 10 ↓

    Mientras cargando '⁨GODMODE faster shortcuts and Cloze switching⁩':
    ⁨Traceback (most recent call last):
    File "aqt\addons.py", line 208, in loadAddons
    File "C:\Users\*user*\AppData\Roaming\Anki2\addons21\disable_1508677152\__init__.py", line 1, in <module>
    from . import custom_shortcuts
    File "C:\Users\*user*\AppData\Roaming\Anki2\addons21\disable_1508677152\custom_shortcuts.py", line 468, in <module>
    mw.toolbar.draw()
    File "aqt\toolbar.py", line 48, in draw
    File "C:\Users\*user*\AppData\Roaming\Anki2\addons21\disable_1508677152\custom_shortcuts.py", line 447, in cs_toolbarCenterLinks
    return self._linkHTML(links)
    AttributeError: 'Toolbar' object has no attribute '_linkHTML'

    This should be easily fixable but I can't code at all. Thanks for your work anyway, I'm aware you'r busy till June. Take care till then!
    on 1585362412
    Addon makes anki profile inaccessible and causes program to crash. Only way to fix was with a reinstall.
    Backup your decks before trying this addon.

    https://i.imgur.com/jsZy8Hn.png
    Comment from author
    Very surprising. If this happens to anyone in the future, press the shift key when opening Anki. This disables any addons from loading and will let you delete the causative addon, so you shouldn’t need to reinstall.

    Thank you for reporting this and its error message. I’m further restricting downloads for newer versions of Anki until I can look into this.
    on 1584896926
    Wonderful addon, but it does not work for me anymore since 2.1.23 update! Anyone else does have this problem?
    Comment from author
    Thank you for reporting this! I plan to look into a fix in June, after I take a big exam I'm currently studying for.

    https://anki.tenderapp.com/discussions/add-ons/42901-godmode-faster-shortcuts-and-cloze-switching-bug-report
    on 1580264193
    Works great, but I'm missing the ctrl + enter that finalizes the card. Can you assist?

    UPDATE: Fixed!! Wonderfully useful, and saves a lotttt of time. Thank you so much for your help and development of this!
    Comment from author before post was edited
    For anyone wondering, I'm currently working on a fix for this, as being discussed here:
    https://anki.tenderapp.com/discussions/add-ons/35475-bug-godmode-faster-shortcuts-and-cloze-switching-interfering-with-scheduler-in-21

    Update: This problem should now be fixed.
    on 1579370310
    good shit
    on 1573924270
    Works as intended for me, a great productivity boost!
    on 1573347910
    Just what I needed, I deleted add-on "Customize Keyboard Shortcuts." because this one includes it(superset).
    on 1572032984
    I used this fine for 2.0, but it's not working for 2.1.

    I think you should create a separate version for 2.1.
    Comment from author
    There is a separate version for 2.1, and it's working for me.
    on 1570721132
    HANDS DOWN THE ABSOLUTE BEST ADD ON IN ALL OF ANKI.
    on 1569950387
    Works great!
    on 1566867508
    Are there any plans to make an update to have this addon work with frozen fields? Big fan of the addon nonetheless and would love to use it with frozen fields.
    Comment from author
    Yeah, that bothers me too. The problem has to do with how Frozen Fields works (it unfreezes the top field when you switch from Basic to Cloze), so I don't see a solution by updating my add-on. When I have some time, I'll play with the code from Frozen Fields and see if I can propose a solution to Glutanimate so he can update Frozen Fields.

    EDIT: Good news. Went to fix this today, but first I updated Frozen Fields and this problem doesn't exist anymore.
    on 1566751891
    Im a fan man!
    on 1565995587
    Control-E doesn't work if you have the browse window open. Control-E is also the shortcut for adding a new card (Notes --> Add Notes...) so it looks like the native shortcut overwrites the add-on. Maybe a different shortcut would be better. Otherwise, everything seems to work great.

    Edit: Changed Ctrl+S to Ctrl+Shift+C and changed Ctrl+E to Ctrl+S and it fixed the problem. Also, its a lot easier to remember because I think of S for "successive"
    Comment from author
    Thanks for reporting this bug. I've confirmed it was specific to the 2.1 version only.

    The problem was because the add-on breaks when two shortcuts are the same. I uploaded a fix, changing the "add new card from browser" shortcut to Ctrl+R. I like keeping the Cloze shortcuts as they are because two-button shortcuts are easier.
    on 1565486532
    godmode
    on 1563403830
    Might interfere with the scheduler as noted here: https://old.reddit.com/r/Anki/comments/ca9pv4/something_is_off_about_steps_in_anki_21_what_is_it/

    Seems to be skipping the first step on my system: Windows 10 while using keys 1 2 3 4 for scheduling.
    Comment from author
    Thanks for following up with my question on Reddit! I found the problem and uploaded a fix.

    It wasn't interfering with the scheduler per se--rather, the keyboard shortcuts for 1234 were setup to work like the spacebar by default. I didn't notice this because I had changed the settings on mine. This was a problem with the 2.1 version, but it should work as expected now.
    on 1559664604
    I loved this add-on for the 2.0 version. Unfortunately, this version reset a bunch of the pre-programmed anki shortcuts. More specifically, I could no longer use the hotkeys for the "easy = 3, good = 2, hard = 1" features. It also changed the hotkey for undoing an action.
    Comment from author
    I might be wrong, but I think Anki 2.1 changed many of those shortcuts, not this add-on. Otherwise, if anyone has specific examples, mention it in a review and I could upload a fix.

    And anyways, you can use the settings to change the shortcuts to whatever you want. Using 1234 with jkl; for answering cards is working for me.
    on 1559613034
    Muito bom, prático demais.
    on 1559385488
    CTRL+E works fine, but CTRL+S (aka add repetitive cloze) does not. I downloaded mainly because of the awkward default ctrl+shift+alt+C for this function. I swapped the E and S, restarted, and the repetitive is now working on E, but subsequent cloze is thus not functioning.
    Comment from author
    Odd. Haven't been able to replicate that on either Windows or Mac. Works for me.
    on 1559026338
    Hmm...I like it but I can't seem to configure the add on.. I'll update when it's working again
    on 1558933191
    Perfect for new update. Thanks!
    on 1553778612
    This is very convenient when making lots of cloze cards!
    Much better than default hotkye(ctrl+shift+C) which can't make repetitious {{c1::}}
    Thanks!
    on 1550741485
    Great add-on!
    Works fine on my PC, but loss function on Mac. I have tried reinstall or customize hotkey binding. Weird
    on 1548877964
    This is clutch AF. Thank you, sir/ma'am!
    on 1542327070
    I like this, don't understand how it switches automatically tho, would prefer it to switch to cloze when I use the shortcut CTRL + E / S and back to optional reversed automatically once I try to create the next card