20 Search Entries Deletes To 10 After Restarting N++
-
I don’t know why. But after a restart of N++, 20 search entries are deleted. Only 10 are left. How do I fix this issue?
-
The “Preferences for advanced users” section of the manual (https://npp-user-manual.org/docs/preferences/#preferences-for-advanced-users) explains how to “Change the number of expressions that can be saved in the Find/Replace dialog’s Find, Replace, Filters, and Directory fields” by editing
config.xml(No, there is no way to do it in the GUI, due to the developer not wanting more clutter in the preferences GUI)
-
Thanks PeterJones, that explains it — 10 is the default limit, so it is not a bug or lost settings, just the history being trimmed on restart.
One practical tip for anyone editing config.xml to raise that number: close Notepad++ completely first, and make a backup copy of config.xml before changing it. If Notepad++ is still running when you edit the file, it can overwrite your change when it exits. After restarting, check that the Find history keeps more than 10 entries before relying on it for a long session.
-
That’s helpful to know. I didn’t realise the search history limit could be adjusted through config.xml rather than the Preferences window. Making a backup before editing the file is definitely a good tip, especially to avoid losing any custom changes.
-
I finally got things to work again. I couldn’t remember where to find config.xml. I even checked the thread I started that resulted in the 30-entry feature being implemented. https://community.notepad-plus-plus.org/topic/13320/how-do-i-delete-search-entries/22?_=1796585876215
I ended up doing an Internet search and found this.
Coises
Jan 2, 2024, 2:51 PMType WindowsKey+R.
In the box, type:
%AppData%\Notepad++
Click OK.You will see the file in that folder.
https://community.notepad-plus-plus.org/topic/25299/where-is-config-xml-located
-
I ended up doing an Internet search and found this.
Notepad++ User Manual > Config Files has a section on Config Files Location
https://npp-user-manual.org/docs/config-files/#configuration-files-locationThat section of the user manual is quite explicit about where the normal location of that file is, as well as how to find it if you don’t have a normal installation.
In case you’d never noticed, the User Manual is linked from the ? menu, to make it easy to find.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login