history-search with prefix