Faster autocompletion.

This might be better as a view property, but that's not too hard to
extract.