Using a - in filenames

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Using a - in filenames

Post by *Maxwish »

when using a '-' sign in front of a filename doesn't effect the way it is listed.

example:

a.zip
b.zip
c.zip

is listed the same if name b.zip is changed to -b.zip:

a.zip
-b.zip
c.zip

this is not the case with other signs as '+' or '_'. In this case the file will all be listed first:

+b.zip
a.zip
c.zip

Is there any special reason for why "-" is not sorted ?
...BRB...
Tsunulukai
Junior Member
Junior Member
Posts: 66
Joined: 2003-02-07, 23:44 UTC

Post by *Tsunulukai »

I tried to reproduce it without any success...
Tcmd 5.51 - WinXP Pro SP1

the "-" gets sorted as other chars here...
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

I'm using win2k + sp4.
Strange, would not think this was OS dependant.

Personaly I thought this was a 'feature'. It's quite handy when wanting to mark a certain directory (example: a directory that has been backed up already) whilst still keeping it listed in the original way...
...BRB...
User avatar
j.x
Junior Member
Junior Member
Posts: 54
Joined: 2003-09-18, 15:17 UTC
Location: Malmö, Sweden

Post by *j.x »

Maxwish wrote: I'm using win2k + sp4.
Strange, would not think this was OS dependant.
I'm using XP Pro, Swedish version and TC 5.51. In my box, -b.zip also stays between a.zip and c.zip as in your W2k box. Maybe it's the language dependant sorting methods?
Using Windows without Total Commander is like driving a car without a steering wheel!
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Any special SortUpper setting in wincmd.ini?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
jdmarch
Member
Member
Posts: 161
Joined: 2003-03-12, 02:34 UTC
Location: Austin, Texas, USA

Post by *jdmarch »

Yes, I've noticed the same thing as Maxwish. Running W2K SP4. I assumed it was a "feature" but find it annoying.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

XP Pro PL (Polish) - the same as at Maxwish' computer.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

just checked some older versions:
Using Wincmd v3.03 and less: sorts the '-filename' at the top.
using Wincmd v3.53 and higher: the '-filename' stays in the same place.

So, who wants to check the v3.5x history.txt to find out if it's a feature :)
(the text files is about 350 lines....)
...BRB...
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

TCmd V5.51a, W2k same like Maxwish

BTW: MS Explorer same like TCmd.
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

Hacker wrote:Any special SortUpper setting in wincmd.ini?
the penny has fallen:
by adding SortUpper=1 to wincmd.ini changes this.

looking in history.txt of v3.50:
03.10.97 Added: switch SortUpper=1 causes underscores to be sorted at the END of the file list
Guess this effects the minus (-) sorting also ???
...BRB...
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Maxwish
Good job :-)
BTW: http://www.ghisler.com/history.txt doesn't seem to be full :-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

Here's my test directory with 5 files: a.txt to e.txt
SortUpper=0

Code: Select all

_d.txt   (underscore listed at top : default sorting)
+b.txt   ('plus ' before 'letters')
a.txt
-c.txt   ('minus' has no effect) !!!
e.txt
SortUpper=1

Code: Select all

+b.txt   ('plus ' before 'letters')
-c.txt   ('minus' now before 'letters') !!!
a.txt
e.txt
_d.txt   (underscore listed at bottom : by ini setting)
Still a bit strange, if you ask me....

2DJK
complete history:
http://clubtotal.free.fr/tc_tools/tctxt_full_history.zip
...BRB...
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Maxwish
Ok, I know there is everything on you page (I'd downloaded it form your old site but I've forgotten about it) :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, to clear the confusion:
With SortUpper=1, Total Commander converts the names to uppercase, and then compares them character by character.

With SortUpper=0, Total Commander calls the string compare function of the operating system, to get the exact same sort order as in Explorer. This sort order is depending on national character sorting, e.g. to handle accents.
Author of Total Commander
https://www.ghisler.com
Post Reply