use history-substring-search and extract plugin