Sort, No duplicates setting is no longer permanent

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

Sort, No duplicates setting is no longer permanent

Post 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.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
miked
Posts: 60
Joined: Tue Feb 27, 2007 11:17 am

Post 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.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post 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.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
miked
Posts: 60
Joined: Tue Feb 27, 2007 11:17 am

Post 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.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post 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.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
peter_jay
Posts: 1
Joined: Sat Sep 07, 2013 12:03 pm

Post 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.)
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post 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.
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post 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!
Last edited by jeffy on Tue May 27, 2014 7:08 pm, edited 1 time in total.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I had it in my ConfigState.xml when I upgraded from 7.2 to 7.3 and it stayed.
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply