Ways to clean the "Find" "Replace"

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Ways to clean the "Find" "Replace"

Post by ineuw »

It took me ~15 years of using TP to ask the community on what is the recommended way to clean the Find and Replace list in ConfigState.xml when these functions fail because the limit was reached.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Which functions fail and in what way?
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post by ineuw »

Nothing is lost, I was wondering if the ConfigState.xml should be touched at all and if there is a recommended way to reset the fields other than what I am doing. I consider understanding it important in the context of time saving.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I don't know which "functions fail" or how, or "what [you are] doing". But you might try this:

Close all instances of TextPad.
Find your ConfigState.xml file, probably one of these:

Code: Select all

%APPDATA%\Helios\TextPad\8\ConfigState.xml
%APPDATA%\Helios\TextPad\9\ConfigState.xml
Save it somewhere safe.
Open it in an editor that isn't TextPad.
Find this section:

Code: Select all

  <Recent-Strings> 
    <value name="Find" type="collection"> 
      <element>here</element>
      <element>there</element>
      <element>somewhere else</element>
      ...
    </value>
    <value name="Replace" type="collection"> 
      <element>this</element>
      <element>that</element>
      <element>the other</element>
      ...
    </value>
  </Recent-Strings>
Adjust it as required.
Save the file.
Open TextPad and examine the Find and Replace lists.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post by ineuw »

Apologies for the typos and omissions. It was a terrible first post. It was the end of the day for me, and I was in a rush to post questions of concern on various forums. So, please accept this rewrite.

The search and replace function fails when the fields are filled up with about 20 entries. Then, I edit the file, erase the old entries and add a single <element/> which is sufficient.

There are a number of backups, but the reason I ask is because I use this feature constantly and simultaneously on dozens of open documents and must edit the file frequently.

I remember that in early versions of 8, the .xml file corrupted easier and although I know how to rebuild the configuration, I didn't look forward to doing it.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
Post Reply