orokusaki
orokusaki

Reputation: 57148

Is there a way to disable (or at least clear) Find/Replace history in SublimeText 3?

SublimeText keeps Find / Replace history. Is there an easy way to disable or at least clear this?

Upvotes: 4

Views: 4402

Answers (2)

Darrick Herwehe
Darrick Herwehe

Reputation: 3722

Find/replace history is stored in a Session file.

Mac location:

~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session

PC location:

%AppData%\Roaming\Sublime Text 3\Local\Session.sublime-session

The Session file hold tons of information and settings (over 3000 lines in my file), including the find/replace history. Like everything else in Sublime Text, it's JSON formatted, so you could just write a simple script to go in a delete the information stored there.

The find history itself is located under

Session.sublime-settings->settings->new_window_settings->find_state->find_history

replace_history is also located in the same spot.

Upvotes: 4

abhijeet sinha
abhijeet sinha

Reputation: 9

I am using ST3 and I can just delete the contents (Select all -> Delete) in the Find results tab and close it. The next search only gives the results of the new find.

Upvotes: 0

Related Questions