When searching for a text string in a file, use recent search history: with the search pane already open, press &shortcut:ShowSearchHistory; or click the magnifying glass icon to view the list of recent entries:

Recent search history