Update search_with_selected_text to add history
Ignore notry directory