I was going to mention that it’s possible for where_history
to appear in the session file more than once, but I assume that’s not the case since you mentioned searching your entire home directory which you presumably did after you had already edited the file.
I’m running Slackware here, not Ubuntu (although I can’t imagine how that could possibly matter) but I can’t seem to reproduce this particular problem; can you provide a short list of steps that show this happening?
For example, for me (Running ST3 3114; tested in Windows, MacOS and Linux):
- Have some project open
-
Shift+Ctrl+F to open the Find in Files panel
- Erase the contents of the
Where:
field
- Perform search (searches open files and folders)
- Close sublime text
- Reopen sublime text
- Press Shift+Ctrl+F again to reopen the Find in Files panel
- Panel is as I left it, with an empty
Where:
field
The above also works with any specific contents in the Where:
field, however the contents of the Where:
field seem to be persisted only at the time that a search is performed; just closing the panel or quitting sublime with the text in place or cleared does not persist the change.
The only thing I can imagine is that either Sublime was open while you were editing the files in the other application and so the changes still persist anyway, or you’re running an older version of sublime that had some issue, but neither of those seem very likely at all, unfortunately.
I ran a search for a specific Where:
item in one of my projects (specifically the one that was the default in my current project):
tmartin:dart:~> find . -name \* -type f -exec grep -qi "/home/tmartin/local/src/ts-breakout/ts" {} \; -print
./local/src/ts-breakout/ts-breakout.sublime-workspace
./local/src/Sublime3DefaultPackage/Sublime3DefaultPackage.sublime-workspace
./local/src/ts-game-engine/ts-game-engine.sublime-workspace
./SublimePluginStuff/SublimePluginDev.sublime-workspace
./SFML/SFML.sublime-workspace
./.config/sublime-text-3/Index/000389.ldb
./.config/sublime-text-3/Local/Session.sublime_session
./.smartgit/7/log.txt.1
./.vim_backups/Session.sublime_session~
One thing this proved is that my home directory is far too big and unwieldy because it took over 2 hours to complete. Also though, as you can see the only hits in files that are not sublime-workspace
files of some sort are unrelated files. There is a hit in the sublime text 3 index, but since that’s the index of symbols and my search term was specifically the path to files that contain symbols, that’s not surprising.