This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prevent the 'extension' column showing nonsense for folders?

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
hiccup
Junior Member
Junior Member


Joined: 13 May 2018
Posts: 63

PostPosted: Wed May 16, 2018 12:28 pm    Post subject: Prevent the 'extension' column showing nonsense for folders? Reply with quote

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?
Back to top
View user's profile Send private message
Dalai
Power Member
Power Member


Joined: 28 Jan 2005
Posts: 6049
Location: Meiningen (Südthüringen)

PostPosted: Wed May 16, 2018 12:47 pm    Post subject: Reply with quote

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:
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
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups
Back to top
View user's profile Send private message Send e-mail
hiccup
Junior Member
Junior Member


Joined: 13 May 2018
Posts: 63

PostPosted: Wed May 16, 2018 1:08 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Dalai
Power Member
Power Member


Joined: 28 Jan 2005
Posts: 6049
Location: Meiningen (Südthüringen)

PostPosted: Wed May 16, 2018 1:44 pm    Post subject: Reply with quote

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
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups
Back to top
View user's profile Send private message Send e-mail
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4804
Location: Europe, Aachen

PostPosted: Wed May 16, 2018 3:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
hiccup
Junior Member
Junior Member


Joined: 13 May 2018
Posts: 63

PostPosted: Wed May 16, 2018 3:39 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group