Sorting files with extenion with dot only

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
dev/null
Junior Member
Junior Member
Posts: 3
Joined: 2020-02-04, 10:21 UTC

Sorting files with extenion with dot only

Post by *dev/null »

Hello,
I have a question about sorting files that have no name
I mean they just have a extension name with dot only

First case:
Files do not have extension in the extension column

Second case:
The `.todo` file should be located elsewhere (alphabetical sorting by extension)
Letter `.t` (.todo) is after letter `.p` (.php)

Screenshot of both cases:
Image: https://i.imgur.com/M4QjIYY.png

Compare with WinSCP:
Image: https://i.imgur.com/JjZPkAn.png

Compare with VSCode:
Image: https://i.imgur.com/d55ZkVj.png

Is it possible to get the same behavior as in the cases that I showed as a comparison
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Sorting files with extenion with dot only

Post by *nsp »

You can add a custom column using tc.ext wich will gives you the extension as you want.
Clicking on this column new will sort like for VSCode. This will not work for files inside archive or in filesystem plugin or ftp.
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Re: Sorting files with extenion with dot only

Post by *obeg »

The reason for this behavior is that a file can't have no name. It has to have a name, and then the part after last period is used as extension.

So .todo have the name .todo and no extension

I do not think it is possible to change this behavior in Total Commander
User avatar
Dalai
Power Member
Power Member
Posts: 9386
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Sorting files with extenion with dot only

Post by *Dalai »

Ugh, that sort order annoys me! No, not that in TC but the example you got for the other programs. Why is .htaccess coming before the files, but .todo after them? Makes no sense. There's a similar issue in Linux Bash and/or Midnight Commander (this is why I bring this up) where the leading characters seem to be stripped (like # and dot and others) and sorted by the file's remainder. It's just super annoying to find files in such directories.

Anyway. Try the various sort methods provided by TC: Options > Display > Sort method.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply