Revamp search; make it more like sublime

http://todolistsanity.com/projects/12/tasks/143/edit
Rename variables for clarity