Size display vs. custom columns mode
Moderators: white, Hacker, petermad, Stefan2
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Size display vs. custom columns mode
Hi all,
This is my first post here. So first of all, I would like to say that I really like the power of Total Commander. I bought my license years ago but just started to use it seriously since a few weeks. This is for work mainly. The reason I wasn't using it in the past is because my previous job was not letting me install the softwares I wanted. Now my current job gives me freedom so I installed TC and I am happy!
Now the question. I defined a custom columns mode containing few columns including size. Using that, it seems that the size display setting (under Configuration->Display->Tabstops) is ignored in that case. I want to display the size as kbytes. Do I miss something? Is it by-design?
Thanks for clarification
Jonathan
This is my first post here. So first of all, I would like to say that I really like the power of Total Commander. I bought my license years ago but just started to use it seriously since a few weeks. This is for work mainly. The reason I wasn't using it in the past is because my previous job was not letting me install the softwares I wanted. Now my current job gives me freedom so I installed TC and I am happy!
Now the question. I defined a custom columns mode containing few columns including size. Using that, it seems that the size display setting (under Configuration->Display->Tabstops) is ignored in that case. I want to display the size as kbytes. Do I miss something? Is it by-design?
Thanks for clarification
Jonathan
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Size display vs. custom columns mode
Hi,
Regards,
Karl
Which size? (-> Code?)jonathanpoulin wrote: ↑2021-01-16, 14:18 UTC I defined a custom columns mode containing few columns including size.
Yes, a "custom columns view" overrides the setting under Configuration -> Display -> Tabstops.jonathanpoulin wrote: ↑2021-01-16, 14:18 UTC Using that, it seems that the size display setting (under Configuration -> Display -> Tabstops) is ignored in that case.
In the "custom columns view", a column for the display in kbytes must be specified, e.g.
Code: Select all
[=tc.size.kbytes]
Karl
Re: Size display vs. custom columns mode
Hi and welcome Jonathan.
For a custom column you utilize a plugin, as default the "tc"-plugin, as Karl shows.
Now it's the plugin who supply the possible options.
There are several plugins, read more:
PLUGINs - Find / Install / Remove a plugin
viewtopic.php?p=294671#p294671
For a custom column you utilize a plugin, as default the "tc"-plugin, as Karl shows.
Now it's the plugin who supply the possible options.
There are several plugins, read more:
PLUGINs - Find / Install / Remove a plugin
viewtopic.php?p=294671#p294671
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Re: Size display vs. custom columns mode
Hi Karl,
I am impressed how TC is highly flexible. Great tool
Thank you very much
Jonathan
That's good! I just tried it and this is what I was looking for. And yes, this was clearly explained in the help file. This time I did not took a look there first... I saw that I can add a prefix and/or a suffix as well. I added suffix "kb".tuska wrote: ↑2021-01-16, 14:53 UTC
In the "custom columns view", a column for the display in kbytes must be specified, e.g.Code: Select all
[=tc.size.kbytes]
Code: Select all
[=tc.size.kbytes" kb"]
Thank you very much
Jonathan
Thanks,
Jonathan Poulin
Jonathan Poulin
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Re: Size display vs. custom columns mode
Hi Stefan,
Thanks for your time and for that link. In fact, I had already a content plugin installed.Stefan2 wrote: ↑2021-01-16, 17:12 UTC There are several plugins, read more:
PLUGINs - Find / Install / Remove a plugin
viewtopic.php?p=294671#p294671
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Size display vs. custom columns mode
When setting up the columns, you can also put "kb" in the column "Caption".jonathanpoulin wrote: ↑2021-01-16, 18:13 UTC I added suffix "kb".Code: Select all
[=tc.size.kbytes" kb"]
This column is intended for column headings and in this case you could even save some space (by displaying kilobytes) in this column.
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Re: Size display vs. custom columns mode
This is a better idea in that case. I did the change. Thanks!
Thanks,
Jonathan Poulin
Jonathan Poulin
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Re: Size display vs. custom columns mode
Hi,
This is an old post from me. Now I have a side-question to it.
If I define field contents as:
I see that directories are outputted as:
Is there a way to prevent it and instead display them normally? Like that (without suffix):
Thanks
Jonathan
This is an old post from me. Now I have a side-question to it.
If I define field contents as:
Code: Select all
[=tc.size.kbytes" kb"]
Code: Select all
<DIR> kb
Code: Select all
<DIR>
Jonathan
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Size display vs. custom columns mode
Yes, with WinScript Advanced 1.7 - wdx_Content Pluginjonathanpoulin wrote: ↑2024-01-19, 16:01 UTC I see that directories are outputted as:Is there a way to prevent it and instead display them normally? Like that (without suffix):Code: Select all
<DIR> kb
Code: Select all
<DIR>
Details to follow...
- jonathanpoulin
- Junior Member
- Posts: 28
- Joined: 2020-12-19, 12:09 UTC
- Location: Saint-Marc-des-Carrières, QC Canada
- Contact:
Re: Size display vs. custom columns mode
Ok, great! I'll take a look. Thankstuska wrote: ↑2024-01-19, 16:37 UTC Yes, with WinScript Advanced 1.7 - wdx_Content Plugin
Details to follow...
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Size display vs. custom columns mode
Hi,
Before you get started, I would like to inform you of the following (unfortunately I missed this fact before):
- For folders(!), the "Size in KB" column no longer displays a value.
- "<DIR>" is also no longer displayed in the column "Size in KB". Unfortunately, I don't know the solution to this either.
Before you get started, I would like to inform you of the following (unfortunately I missed this fact before):
- For folders(!), the "Size in KB" column no longer displays a value.
- "<DIR>" is also no longer displayed in the column "Size in KB". Unfortunately, I don't know the solution to this either.
- Install the plugin "WinScript Advanced 1.7 - wdx_Content Plugin" by double-clicking on the file "wdx_WinScriptAdv_1.7.zip" in Total Commander(!).
- Add the following to the "options.ini" file (%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\options.ini)
in the [Script] section in line "ActiveScripts=" .......: ExplorerKBRounding
For me, for example, it currently looks like this:
ActiveScripts=MinutesAgo|CheckEncoding|Signature|ExplorerKBRounding|FilesCount|GetDetailsOf|NTLink|ContinuousNumbers|
- In the WinScript Advanced "options.ini" file, add this section (including section name!) as follows:
Code: Select all
[ExplorerKBRounding] ; File Size with explorer rounding in kB Script=ExplorerKBRounding.vbs content=Size in KB extensions=* FoldersPaths=0
- Save the .vbs file with a text editor and place it in the "Scripts" folder in the path mentioned.
%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\Scripts\ExplorerKBRounding.vbs
Show same file size as Windows Explorer? - Author: HolgerKCode: Select all
'============================================================================== 'Script for WinScriptAdv content plugin ' content - file size in kB (Like Explorer column) '============================================================================== Set FSO=CreateObject("Scripting.FileSystemObject") content=Result(filename) Set FSO=Nothing Function Result(pPath) If FSO.FileExists(pPath) Then set F=FSO.GetFile(pPath) Result=Round((F.Size+512)/1024) set F=Nothing End If End Function
- Configure this custom columns view...
Result:
Code: Select all
Caption: Size in KB Field contents: [=winscriptsadv.Size in KB]
- For folders(!), the "Size in KB" column no longer displays a value.
- "<DIR>" is also no longer displayed in the column "Size in KB". Unfortunately, I don't know the solution to this either.
Remark:
To display the folder size, simply press the space bar or Ctrl+L.
The display takes place in real time using the "Everything" tool in Total Commander. Exit and restart Total Commander, e.g. with this BUTTON
Code: Select all
TOTALCMD#BAR#DATA CM_EXIT 9 TOTALCMD.EXE,25 CM_EXIT 9|1: Exit and restart Total Commander|8: Pass current left and right directory and file under cursor to new instance|https://www.ghisler.ch/board/viewtopic.php?p=446794#p446794 0 -1