DirSizeCalc 2.22 (content plugin)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-03-25, 22:04 UTC

2petermad
I wonder if it would be possible to have the DirSizeCalcSettings.exe make the plugin reload when any changes have been made. Now I have to change the view to one not having any dirsizecalc fields, then remove plugins from memory and then reselect the custom columns view that I wanted to see the changes for - or restart TC.
Well
http://ghisler.ch/wiki/index.php/Provide_a_way_to_setup_Content_plugins_on_the_fly

User avatar
Peter
Power Member
Power Member
Posts: 1855
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz
Contact:

Post by *Peter » 2008-03-25, 22:45 UTC

I tested the EXE for the first time for some minutes (and I didn't read the postings above - so excuse me if I repeat something which is already discussed):

a) The configuration is well done, very clear and well arranged. Fine!

b) Dialogue "Einheit bearbeiten" shows only fragments of a sentence:
"S eingeben um Leerzeichen zu". Where? What's about the blank? (yes, I found it, but it should be displayed)

c) Dialogue "Einheitenvorschau" has "Eigenes Format" in the right column. That is a little bit confusing, because not all selected or displayed units are "Eigene" Formate. Maybe the word "Selected / gewähltes" is better? And I do not know if the word "Einheit" or "Format" is the right one ..

d) Maybe you want to add a toggle-function to button "Vorschau (preview)": "Vorschau an / Vorschau aus". Now I have to close the preview with X. Or - what's about integrating the preview in the "Einheit bearbeiten"-Dialogue and avoiding an extra window?

e) Suggestion (luxury):
The "Hinzufügen / Add units" Button should use the selected unit to make a copy of it. For example: I want to make a "kB" unit - one for germany with "." as separator and "," as decimal and one "kB" unit for Switzerland with "'" as separator and "." as decimal.

f) Maybe you should make a limitation fotr the length of the name for "Eigene Einheit.." If the name is to long you can not read it in the configuration of TC-search.(But this also happens with the "Felder" like "Enthält Unterverzeichnisse", and so it is not important.

Best regards

Peter
TC 9.200a / #266191
Win 7 x64 / Win 10 x64

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-03-25, 23:34 UTC

2Peter
thanks for testing.

The configuration is well done, very clear and well arranged. Fine!
Thanks!
"S eingeben um Leerzeichen zu
Yes the container for the string is too short.
Maybe the word "Selected / gewähltes" is better?
Sounds like a good idea.
Maybe you want to add a toggle-function to button "Vorschau (preview)": "Vorschau an / Vorschau aus". Now I have to close the preview with X.
I will think about it although I don't see a problem in pressing the close button. The dialog doesn't really hurt and is also closed when changing to another page in the main window.
what's about integrating the preview in the "Einheit bearbeiten"-Dialogue and avoiding an extra window?
No it will remain an extra window.
The "Hinzufügen / Add units" Button should use the selected unit to make a copy of it. For example: I want to make a "kB" unit - one for germany with "." as separator and "," as decimal and one "kB" unit for Switzerland with "'" as separator and "." as decimal.
Sounds like a good idea but it's too late for version 2. You'll have to do this manually for now. You can change between unit configs without closing the edit unit dialog as it's not modal.
Maybe you should make a limitation fotr the length of the name for "Eigene Einheit.." If the name is to long you can not read it in the configuration of TC-search.(But this also happens with the "Felder" like "Enthält Unterverzeichnisse", and so it is not important.
I currently leave it up to the user to use reasonable lengths for fields and units. Field names must be comprehensible. TC automatically uses them as column captions where shorter field names would be better. I made a suggestion on this some years ago:
http://ghisler.ch/wiki/index.php/Provide_a_way_to_set_a_field_caption_and_a_field_name

cheesecake
Junior Member
Junior Member
Posts: 16
Joined: 2007-04-19, 03:09 UTC

Post by *cheesecake » 2008-03-26, 09:43 UTC

I prefer to use binary mode and display KB/MB/GB at the same time, instead KiB/MiB/GiB, how can make it under the latest beta?

Before upgrade, I used beta9 and did it through modifying lng file to,

Code: Select all

; Units
10=Bytes
20=KB
21=MB
22=GB
30=KB
31=MB
32=GB

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-03-26, 09:59 UTC

2cheesecake
Theoretically it would be

Code: Select all

B|KiB|MiB|GiB|kB|MB|GB=my unit translations
but I'm afraid it doesn't work in this version due to a bug. Thanks for pointing this out. All other strings should be translatable though.

icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu » 2008-04-05, 15:03 UTC

Bug/Problem:
When the switch for not calculating junction sizes in subdirectories is activated, this only prevents calculating of junctions in the first subdirectory level. All junctions deeper in hierarchy are still calculated.

Icfu
This account is for sale

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-04-06, 20:49 UTC

2icfu
Thanks for your report. I can confirm the bug.

User avatar
dott
Senior Member
Senior Member
Posts: 285
Joined: 2007-03-04, 00:58 UTC
Location: La Plata, Argentina

Post by *dott » 2008-05-12, 16:44 UTC

2Lefteous
I have made a spanish translation:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="DirSizeCalc.esp.lng"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="DirSizeCalc.esp.lng"

W2VzcF0NCjsgRmllbGQgbmFtZXMuDQpTaXplPVRhbWHxbw0KQ29tcHJlc3NlZCBTaXplPVRhbWHx
byBDb21wcmltaWRvDQpDb21wcmVzc2lvbiBSYXRpbz1SZWxhY2nzbiBkZSBDb21wcmVzafNuDQpE
aXJlY3RvcnkgQ291bnQ9TvptZXJvIGRlIFN1YmRpcmVjdG9yaW9zDQpGaWxlIENvdW50PU76bWVy
byBkZSBBcmNoaXZvcw0KRW1wdHk9VmFj7W8NCkNvbnRhaW5zIEZpbGVzPUNvbnRpZW5lIEFyY2hp
dm8NCkNvbnRhaW5zIFN1YmRpcmVjdG9yaWVzPUNvbnRpZW5lIFN1YmRpcmVjdG9yaW9zDQoNCjsg
UHJlZml4ZXMuDQpCfEtpQnxNaUJ8R2lCfGtCfE1CfEdCPUJ8S2lCfE1pQnxHaUJ8a0J8TUJ8R0IN
Cg0KOyBQb3NzaWJsZSB2YWx1ZXMgZm9yIHRoZSBmaWVsZHM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x1Z2lufERpcmVjdG9yaW8gZGUgVG90YWwg
Q29tbWFuZGVyDQo2MDE9TG9jYWxpemFjafNuIGRlbCBhcmNoaXZvIGRlICZDb25maWd1cmFjafNu
DQo2MDI9JlJ1dGEgYWN0dWFsOg0KNjA0PUVsIGFyY2hpdm8gZGUgY29uZmlndXJhY2nzbiBleGlz
dGUgeSBlcyBlc2NyaWJpYmxlLnxFbCBhcmNoaXZvIGRlIGNvbmZpZ3VyYWNp824gZXhpc3RlIHBl
cm8gZXMgZGUgc29sbyBsZWN0dXJhLnxFbCBhcmNoaXZvIGRlIGNvbmZpZ3VyYWNp824gbm8gZXhp
c3RlLg0KDQo7IE1lc3NhZ2VzLg0KMTAwMD1Ub3RhbCBDb21tYW5kZXIgNi41NiBlcyBuZWNlc2Fy
aW8gcGFyYSBjb3JyZXIgZXN0YSBhcGxpY2FjafNuLiBQb3IgZmF2b3IgZGVzY2FyZ2EgZSBpbnN0
YWxhIGxhIPpsdGltYSB2ZXJzafNuIGRlc2RlIGh0dHA6Ly93d3cuZ2hpc2xlci5jb20vDQoNCjsg
RGVmYXVsdCBjdXN0b20gZmllbGQvdW5pdCBuYW1lcy4NCjExMDA9Q2FtcG8gcGVyc29uYWxpemFk
bw0KMTEwMT1VbmlkYWQgcGVyc29uYWxpemFkYQ0KDQo=


User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-05-12, 18:35 UTC

2dott
have made a spanish translation
Thank you very much :-)

abraham
Junior Member
Junior Member
Posts: 14
Joined: 2006-10-26, 00:28 UTC

Post by *abraham » 2008-05-13, 05:36 UTC

Hi. Is it too late to implement my suggestion from previous post -:

Is it possible to be able to specify the maximum number of significant digits in the display? Similar to how Windows Explorer works which seems to have no more than 3 significant digits but with a variable number of decimal places. For example (using dot as decimal separator)

127b
1.27k
12.7k
127k
1.27M etc

instead of

127b
1.3k
12.7k
127.2k
1.3M etc



Thankk you

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-05-13, 18:25 UTC

Yes it's too late to add it to DirSIzeCalc 2. Maybe in a future version.

User avatar
DrShark
Power Member
Power Member
Posts: 1235
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Post by *DrShark » 2008-05-17, 09:26 UTC

Suggestion:
Field DirSizeCalc->ContainsFiles
Add Operation: "Custom"
Possible value: file names like:
boot.ini *.exe
Reason: to find dirs not contains these files.

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-05-17, 09:41 UTC

2DrShark
Yes I also thought about considering filters in various fields. The problem here is that there is no proper way to let the user define the filter.
Take a look at my plug-in "File" which has a field "Is in List". It reads a list of filenames from a text file. If the user needs other file names the text file must be edited and the plug-in must be unloaded.

http://www.ghisler.ch/board/viewtopic.php?p=98275#98275

Using filters in DirSizeCalc would work in the same way and I don't know if this is really usable.

User avatar
DrShark
Power Member
Power Member
Posts: 1235
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Post by *DrShark » 2008-05-17, 15:05 UTC

Lefteous wrote:Take a look at my plug-in "File" which has a field "Is in List". It reads a list of filenames from a text file. If the user needs other file names the text file must be edited and the plug-in must be unloaded.

http://www.ghisler.ch/board/viewtopic.php?p=98275#98275

Using filters in DirSizeCalc would work in the same way and I don't know if this is really usable.
Well, I created the file <wincmd.ini dir>\File\FileList_boot and wrote a line boot.ini in it.
How can I search for dirs without this file now?
Can you please put some basic readmes for these plugins?

User avatar
Lefteous
Power Member
Power Member
Posts: 9450
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous » 2008-05-17, 18:14 UTC

2DrShark
You misunderstood me. The plugin "File" doesn't provide the functionality you asked for. The other plug-in was just an example for what the problems of parameterized fields are.

Post Reply