textmate-like autocomplete

I’m using autocomplete fields in my app and it would be nice to have functionality like in textmate where it finds the closest match even if you don’t type it exactly right.

For example, to find report_controller.rb in textmate press cmd-T and type repocon. In my app if you type repocon it doesn’t find report_controller.rb because it doesn’t match exactly. I would have to type report_con

Curious if anyone has implemented this already and would like to share.