Improve auto complete feature (history code assist)