crowdint/rails3-jquery-autocomplete — pull request #186 by gabriel-dehan (2012-11-18 16:40:07+00:00)
Title: Handled textareas, enhanced autocompletion, handled autocompletion mixed with pure text, Javascript more configurable

* Javascript code refactoring (as the code base grew, I created modules and classes);
* Clearly bigger file : 6.2k minified. Should try packing.

* Now handle textareas;
* Can now be set up with a whole new set of options via Javascript : $('#my_element').railsAutocomplete({ /* options */ });;
* Term autocompletion now works on previous terms, and the autocompletion will no longer happen at the end of the input/textarea, but were the cursor stands;
* Can now handle writing terms among normal non completed text through the use of a delimiter. The autocompletion is disabled while writing normal text and is triggered when one presses the delimiter key (like '#' or ',', ...). There are still a few glitches;
* Terms are now using a comma delimiter by default, enabling multiple terms autocompletion in a same input;
* Delimiters can be at the beginning or the end of the term string. Allowing for "#term1 #term2" or "term1, term2";
* is now used for autocompletion and an option allows to keep the focus in the current element;
* The current autocompleted term can now be filtered before processing.