Search code examples
sublimetextsublimetext3

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?


Solution

  • 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.