Prevent the 'extension' column showing nonsense for folders?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Prevent the 'extension' column showing nonsense for folders?

Post by *hiccup »

For the files/folder panel in details view I have created a separate column to show the extension.

That's working fine for files, but for folders it can present strange results.
When a folder name contains one or more dots (full-stops), all text following the last dot will be handled as if it's a file extension and will populate the 'Ext.' column, rendering the column very messy.

Is there some fix so that for folders no (assumed) extension is displayed?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Can't confirm this, not even for the TC 9.20 beta versions. The name of directories is always shown in full, the extension not separated from the rest of the name, even if showing the option to show the extension in the extension column is enabled (which I have always enabled anyway).

Please try running TC with a clean wincmd.ini, like this

Code: Select all

totalcmd.exe /i="%temp%\fresh.ini"
(replace totalcmd.exe with totalcmd64.exe in case you're using TC x64.) Create the custom columns view (obviously) and try again. If TC isn't separating the extension for directories there, it might be some TC option that causes this (which might indicate a bug, but that remains to be seen).

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
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

Before I start messing with ini files...

I have set 'Show file extensions: directly after filename'.
Additionally I have created a custom column for extensions. ([=tc.ext])
(I can imagine not many users would do that)

Here is a screenshot what that looks like:

Image: https://i.imgur.com/k1MpvW3.png

Could you confirm you get different results with such settings?
If so, I will consider resetting ini's and that sort of stuff.
(I'd rather not since I've got pretty much everything working very nice and solid by now)
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Aha, you've added tc.ext in a column. Then it's obvious why you're seeing what you're seeing. Neither of my custom columns views use this field because I don't use it (because IMO it doesn't make any sense, even less in a separate column).

Technically TC is showing correct results since directories are essentially files with a special (directory) flag. On the other hand, the user might argue that directories don't have extensions. There's no simple solution to this, and in regards to custom columns, it would require to add another field to the internal tc plugin so that everyone can be satisfied.

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
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2hiccup

Download the Content plugin "File 1.30" (double click the downloaded archive file in tc to install it) and use "[=file.Extension]" instead of "tc.ext".

HTH
Holger
Make our planet great again
hiccup
Junior Member
Junior Member
Posts: 63
Joined: 2018-05-13, 08:04 UTC

Post by *hiccup »

HolgerK wrote:Download the Content plugin "File 1.30" (double click the downloaded archive file in tc to install it) and use "[=file.Extension]" instead of "tc.ext".
Holger
Thanks HolgerK!
That works perfectly.
Post Reply