Search - Retained ? ? ?
-
Under Search / Find, in the drop-down window, what file in Note ++ saves you searches. A lot of the time I will search for something that I rarely look for, that search will overwrite a search that I use a lot. Then when Note ++ is closed and reopened, some of my regularly searched phrases will be gone.
I was hoping I could open Note’s directory, open a file, and type in the saved search’s I want displayed in that window. I did some searches in its Dir folder, but I was unable to find a file. -
You can increase the number in the program’s memory. This is documented in the user manual.
-
I’ve already increased it to 10, and that is not my question, I want to know where they are stored so I can reset them myself, I can’t see see why that would be a problem. They have to be store in a file somewhere as simple text. With what I do on a daily basis I have certain phrases that I search for routinely, and I like Note ++to load with these, and retain them when it closes.
-
They are stored in config.xml
-
@kendall-demott said in Search - Retained ? ? ?:
I’ve already increased it to 10
No you haven’t. The default is 10, you can increase it up to 30, I believe.
and that is not my question
True enough, and @PeterJones answered your real question.
What I think you’re getting at is kind of a slick idea.
Before you run Notepad++, say, as part of a batch file, you have something that goes in and hardcodes some searches.
While I don’t have a use for that, I can see where some people might. -
I have about (20) key phrases I search for, but only about (10) that I use a lot. It wouldn’t even have to to be something that was hard coded, if I could just find the correct file they are stored or saved in, delete the ones I don’t want, and copy/paste mine in, it would have a lot of time, and I would not have to keep typing in phrases that I need, that where not retain when Note ++ was closed.
-
@kendall-demott said in Search - Retained ? ? ?:
if I could just find the correct file they are stored or saved in
Well you were already directed to find
config.xml
. If you haven’t located it, try directing an Explorer window to%APPDATA%\Notepad++
.If you edit
config.xml
make sure you do it without Notepad++ running (because Notepad++ will save that file, overwriting any manual edits, when you exit it).@kendall-demott said in Search - Retained ? ? ?:
delete the ones I don’t want, and copy/paste mine in,
Well, the problem there is that Notepad++ retains only your last so many searches. As you do new searches, the old ones will get pushed off and forgotten. So, I don’t think your idea is very practical.
-
Based on my current workflow, I will create a “phrase file” to store boiler plate or frequently needed text for a project. I drag the tab to the far left and leave that file loaded as I merrily edit other files. The far left tab is easy to jump to using the Window menu selection. Then it’s just a case of jump to tab, copy text, jump back to context (current) tab and execute the search and paste the copied test into the search menu. Admittedly, returning to the context (current) tab is not always easy if I have many files open. By using session files (or just relying on the built in session manager), the phrase file becomes part of the project. This approach may be a bit crude, but I can easily modify it as the tasks change.
There are plugins that also handle things like this (quips, boiler plate, etc.), I just haven’t found one I liked enough to really learn how to use it and change my eclectic workflows appropriately.