Page 1 of 1
Sort, No duplicates setting is no longer permanent
Posted: Fri Mar 08, 2013 9:03 am
by ineuw
To the all knowing Lords of Texpad,
Recently, I had to reformat and perform a Genesis install. Consequently, TP 6.22 was a complete new install, rather than an upgrade from earlier versions where this setting was permanent. As it's a very handy feature in my scheme of things, what did I miss?
My advance gratitude for any enlightenment.
Posted: Fri Mar 08, 2013 3:10 pm
by miked
I can confirm what you are seeing. It looks like when textpad closes it isn't updating the sort section in the ConfigState.xml sile which it uses to save the settings in.
As a work-around, if you always want the Delete Duplicate lines setting checked then (with textpad closed) use a different editor to edit the ConfigState.xml file (mine is in C:\Users\UserName\AppData\Roaming\Helios\TextPad\6) and change the 0 to a 1 in the following line in the [sort] section of the file.
Code: Select all
value name="DeleteDups" type="uint">0</value>
Back the file up first though. And don't use notepad to edit it as it doesn't see the unix style line endings.
EDIT: Actually you could use textpad to edit the config file. Just save it as a different name, then after closing textpad over-write the original with the edited version.
Posted: Fri Mar 08, 2013 4:22 pm
by ineuw
miked, thanks for your quick reply. Unfortunately, there is no [sort], <sort> or <Sort> section o, the code line in the xml file.
Below the Macros section, I added a <Sort></Sort> section with the code in between, using both a third party editor, (EDXOR) and TP, but nothing happened. When I reopened the .xml file, my addition was gone.
P.S: I have the original backed up.
Posted: Fri Mar 08, 2013 8:54 pm
by miked
Sorry but it's beyond me.
I have just renamed my configstate.xml file to force Textpad to re-create it (as it would I assume after your fresh install) and the <Sort> section does come back for me. Same version of textpad as you so I don't know what to suggest next. I expect bbadmin will see this and fix it for the next release so we don't have to mess with .xml files anyway.
Posted: Fri Mar 08, 2013 10:57 pm
by ineuw
Please don't apologize, I thank you for showing me the inner workings of TP. I never looked because I had no problems related to the settings file.
Interestingly, after making a backup, I deleted the file just to see what gets to be created since I know my setup by heart and keep whatever user preferences possible, like folders for macros, dictionaries etc., on a separate data drive. Perhaps it's the order of creation? Also, it's no big deal. I just thought that the developers should be aware of it.
Posted: Thu Sep 12, 2013 4:09 pm
by peter_jay
Is there any progress on this problem? Has it even been reported as a known bug?
The 'Case sensitive' and 'In character code order' flags in the 'Sort Selected Lines' dialog are stuck and have to be reset every time I re-enter TextPad, which is a pain.
(I use TextPad 7.0.9 (32-bit), freshly installed, on Windows XP SP3.)
Posted: Thu Sep 26, 2013 8:26 pm
by kengrubb
Has anyone managed to decoded any of the other values in the Sort section?
Specifically I'm interested in setting First Key Length.
Posted: Mon May 19, 2014 2:18 pm
by jeffy
This is a problem for me, too.
The delete duplicate lines checkbox always stuck before version 7.2, and now it always reverts to unchecked after TextPad closes.
I also do not see any string called "DeleteDups" in the xml file, nor any section called <Sort>
I took a chance and added this text to the xml file, and it works:
Code: Select all
<Sort>
<value name="DeleteDups" type="uint">1</value>
</Sort>
Phew!
Posted: Tue May 20, 2014 5:06 pm
by kengrubb
I had it in my ConfigState.xml when I upgraded from 7.2 to 7.3 and it stayed.