Reordering keywords saved for 'Find What' list of Find functionality
-
Is it possible to reorder words saved for ‘Find What’ list of Find functionality?
I have 100 of keywords saved for that list for Find functionality. I would like to order them alphabetically so I can select them from the list easily to find it in the open files.
-
@Raj-Kadam said in Reordering keywords saved for ‘Find What’ list of Find functionality:
Is it possible to reorder words saved for ‘Find What’ list of Find functionality?
The online manual refers to the Find What history which is what I believe you are referring to, details are here and down a few pages (7 in my case). Excerpt is “…The Find what and Replace with edit boxes have a dropdown arrow which allows the user to repeat searches conducted previously. For a given run of Notepad++, the search history can grow rather large; when Notepad++ is exited, it only saves the last 10 items in the history by default; number of search/replace terms retained may be changed by editing the config.xml configuration file, per Preferences for Advanced Users…”. The last bit “Preferences for Advanced Users” is a link to show the method of altering the number of saved entries.
You mentioned 100 entries, however from the 2nd link it seems that the maximum saved entries is much lower than that. That value affects how many are saved from one session to the next so perhaps you see 100 in the current session, they won’t all be saved.
In terms of your question though, no there isn’t an easy way to alter the sort. they are saved in a “last in, top of history” format. So the oldest searches are discarded upon exiting Notepad++.
Terry
-
The limit is 30 items.
You could reorder them by writing a script to access the combobox items; it would need to do Windows API calls. It’s not all that easy to do; I sense you are seeking something easy.
If you wanted to reorder them when Notepad++ is shut down, so they are sorted the next time you run, you could manipulate the list in config.xml (this is also a programming exercise).
Other than those options, no, there isn’t anything to do it.
-
@Alan-Kilborn Are we talking about the config.xml located at %app% directory?
-
Please don’t create duplicate posts. Your other post should be removed, you can do that. Since your question is a follow on from this series of posts this is where you should ask further questions and get more answers.
The other post has no frame of reference (preceding posts) so cannot be answered by anyone without reading this series of posts.
But to answer your last question, it’s the %appdata%\Notepad++ that is the “normal” location for the config.xml. Please read the FAQ post What is %AppData% for more information.
Terry