Better history search from
https://coderwall.com/p/oqtj8w