16 0
Sign in to rate

Editor Autocomplete

<10kB. Updated 2013-04-11. Only supports Anki 2.0.x.

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

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 open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Other Anki 2.0.x Add-Ons Ask a Question

Reviews

on 2016-07-30
How to use keys to complete field?

Excellent add-on! Anyone know how you can use keys instead of mouse clicks to put the auto-filled result in the field? Thanks!
on 2016-05-02
Modified 'whitelist' version of the add-on

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.
on 2016-01-16
Amazing!

This addon saved my time!
My obeisance to you, developer:3
on 2015-12-06
Great addon!

Thanks for this addon. It is very useful for my "Source" field in cards.
on 2015-10-11
Good job!

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
on 2014-10-21
How to disable for different fields?

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?
on 2013-06-01
Great add-on!

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!