File size display command

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1572
Joined: 2003-03-28, 14:35 UTC
Location: Sol

File size display command

Post by *wanderer »

I have set file size display to bytes, i admit though that there are times i would like to be able see the size (for a moment) in another way (i.e. dynamic). I thought of adding a button in the toolbar with a submenu containing all available types, but couldn't find a command for it. Is there one?

If not, i'd like to add a wish for a size display command (or set of commands?) at least, but also for header/footer.

The relevant settings are in Options/Display/Tabstop, two comboboxes at the bottom of the window.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: File size display command

Post by *hi5 »

I think you could create a customview and switch to it using the cm_SrcCustomView1 etc commands (which you can use in a button or usercmd)
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
wanderer
Power Member
Power Member
Posts: 1572
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: File size display command

Post by *wanderer »

I don't think that's possible. I couldn't find any hint anywhere that custom views can support setting a specific "size display" setting.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: File size display command

Post by *tuska »

wanderer wrote: 2022-09-10, 21:48 UTC ... I couldn't find any hint anywhere that custom views can support setting a specific "size display" setting.
Custom columns - name: File sizes

Code: Select all

[=tc.size.bytes]
[=tc.size.kbytes" kb"]
[=tc.size.Mbytes]
[=tc.size.Gbytes]
[=tc.size.bkMG2]		  <--
[=tc.size.bkM2]			  <--
[=winscriptsadv.Size in KB]	
[=dirsizecalc.Size.KiB]
[=dirsizecalc.Size.B]
[=dirsizecalc.kb_MB_GB.kb_MB_GB]  <--
Custom columns
Button with command: cm_SrcCustomView9 ->
See: Menu "Show" > "Custom Columns Mode" to find out the number that is used on your PC.
My "Reset-Button"
This button resets the view to the following setting: View mode <Default>

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource,cm_rereadsource 1

wcmicons.dll,86
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource,cm_rereadsource 1|View mode <Standard>: cm_SrcViewMode0|Active panel!|-|cm_RereadSource Ctrl+R|-|cm_rereadsource 1 )|cm_rereadsource 2 )|cm_rereadsource 3 ) <as of TC 9.50 --> see: HISTORY.TXT!>

0
-1
Last edited by tuska on 2022-09-10, 22:24 UTC, edited 1 time in total.
User avatar
wanderer
Power Member
Power Member
Posts: 1572
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: File size display command

Post by *wanderer »

Hmmm... IMO, not the best way (i already have some custom views, so it wouldn't be practical to implement all possible combinations), but i'll try it with one view and see how it goes.

Thanks for the help.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: File size display command

Post by *tuska »

First take only one that the arrow points to.
I just wanted to give you a few to choose from.
Post Reply