Based on 11 ratings:
Sign in to rate
< Back

Editor Autocomplete

<10kB. Updated 2013-04-11.

Description

This addon enhances the Add Card screen with autocomplete functionality. Just start typing and if an existing card has a value that matches what you've typed, it will be displayed inline in the editor for you. From there you can click the value to quickly set the field. However the real reason I wrote this plugin is that I'm playing through a game for the second time, and I want to be notified immediately of cards that I'd already added the first play through. In the following screenshot you can see I didn't have to type the full sentence to see that I already had it in Anki. In such cases I'd simply delete what I'd started to add, then resume playing. This is much quicker than typing in the full sentence (in exactly the same way, especially the punctuation) and looking for the "Show Duplicates" button. The autocomplete search will only search the exact note type and field that you're typing into (so you won't get results from other note types or even other fields in the same note). The search also only does prefix matching, like most other autocompletes. The code is hosted on GitHub. Pull requests and issues most welcome! Psst, you may also be interested in the similar Frozen Fields plugin. :) Version History
  • 1.2 2013-04-10
    • Avoid SQLite errors on extremely long input. Hello MCD users! (reported by AVRS)
  • 1.1 2013-03-17
    • Fix for updating Anki's internal state
    • Basic support for disabling autocomplete on certain fields (for now you must edit the addon source)

Download

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

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

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

Reviews
Ask a Question

Write a Review

Modified 'whitelist' version of the add-on
Posted on 2016-05-02

First of all: Fantastic work on the add-on! It has made the card creation process much easier for me.

To address one of the previous reviewer's points concerning 'AutocompleteFields': I have created a modified version of the add-on that follows the whitelist approach (https://github.com/Glutanimate/anki-addons-misc/blob/master/anki-editor-autocomplete-whitelist.py). Instead of auto-completing all fields by default this implementation of the add-on will only auto-complete on fields you specify.

Hope this will be useful to you, guys.

Amazing!
Posted on 2016-01-16

This addon saved my time!
My obeisance to you, developer:3

Great addon!
Posted on 2015-12-06

Thanks for this addon. It is very useful for my "Source" field in cards.

Good job!
Posted on 2015-10-11

It's a pretty nice addon, haven't had it for a long time but I'm glad I do now :)
But what happened to the frozen field addon? I can't access its page to download it T^T

How to disable for different fields?
Posted on 2014-10-21

I saw there is an option to stop autocomplete for several fields in the code. Anyhow i wasnt able to get it to work. Which 'name' of a field is needed to be put in the [ ] and how are different fields seperated.

Could anyone please explain?

Great add-on!
Posted on 2013-06-01

It is a very useful add-on. Thanks! I have two suggestions:

1. Change 'noAutocompleteFields' to 'AutocompleteFields' (or make it an option, because in my case there are too many fields to deactivate and only 2 fields should be using auto-completion).
2. (Check for duplicates) Provide an option to display X (defined by an user) first sorted matches, instead of just one, during type-and-search operation. E,g, ResultsNumber = 4 or ResultsNumber = 1 (as it is now).

Example:
Say, you are not sure if there is a card "focus on" in your database and you want to have it. Now, if your are typing "focu..." in the editor , the sorted suggestions would be being displayed (assuming you have such items in your collection/deck): [focus, focused, fodder, foe]. In this way you can check on the go if there would be duplicates in your collection.

Thanks!