Sublime Forum

Usability issue: preserve find and replace history between Sublime Text application instances



  1. Open new Sublime Text application instance. Navigate into folder Folder_A.
  2. Press “Ctrl + H”, type some complicated regex pattern.
  3. Press “Replace All” (to use the complicated regex pattern and to make sure it is saved in the history).
  4. Open new Sublime Text application instance and navigate into folder Folder_B (or into Folder_A): all this via “File => Open Folder…”.
  5. Press “Ctrl + H” and expect to reuse previously used complicated regex pattern.
  6. The drop-down list of previously used find entries is empty! I.e. the complicated regex pattern is gone! Have to retype the complicated regex pattern. Not good.

Version 3.2.1, Build 3207.


1 Like


I haven’t tested on the same version yet (though there haven’t been any changes to search state serialization), but I can’t reproduce this behavior. When ST reopens it has the last searched pattern in the search history.



bschaaf, I’ve corrected the scenario. Please retry to reproduce.



One way to implement: each ST instance should write/read find and replace history to/from mutex protected common shared file. Hence the find and replace history will be preserved and common for all the opened ST instances.



What do you mean by a “new application instance”? Do you mean a new window, or how are you launching this separate instance? Sublime Text works with a single session file and thus expects there to ever only be one instance of the application running - an instance can have as many windows as it wants though.