Dummie search function and search prompt finished.

TODO: Write search function, add security checks: boundries, cases when
history is empty. Only call refresh one time at the end of the loop.