Sample content plugin filesys updated to Unicode

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Sample content plugin filesys updated to Unicode

Post by *ghisler(Author) »

Hi!

I have updated my sample content plugin "filesys" to Unicode. It uses the second method to add Unicode support via two separate plugin files, one Ansi and one Unicode. You can download it here:

https://plugins.ghisler.com/beta/wdx_filesys.zip
Source code:
https://plugins.ghisler.com/beta/wdx_filesys_src.zip

It contains mainly the fields from Total Commander's internal 'tc' plugin, except for file comments, plus 2 new fields:
1. Random numbers, e.g. for sorting mp3 files randomly
2. A name field where the user can choose to cut off the first x characters, which can be useful for sorting
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2ghisler(Author),

I can't seem to get [=filesys.versionnr] to show anything but [=filesys.versionstring] works fine. Did I miss something?

And how do you load the unicode plugin, or does it automatically load as it is needed?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. The field filesys.versionnr is (for demonstration purposes) an on demand field. The field is shown only when you press Spacebar, or use the new command
cm_LoadAllOnDemandFields
or
cm_LoadSelOnDemandFields

2. If there are both a .uwdx and .wdx file, TC will try to load the .uwdx first on NT-based systems. If that failes, TC will revert to the .wdx plugin.
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

That explains it then, thanks.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@ Boofo,
without any wdx's installed, TC can do: [=tc.versionnr]
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Since current custom level of directory depth in Search dialog is limited to 100, I suggest to add the same field to internal tc and filesys content plugin allowing to enter any custom directory depth level.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Have a small problem with the filesys plugin:

[=filesys.CutNameStart.#] :: has an odd limit, it only works for the number range 1-20.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The plugin uses the "Units" option here. Unfortunately you can only use values listed in the plugin, which is currently 0..20.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

8.3 name exist true-false field

Post by *DrShark »

Suggestion below applies also to internal "tc" content plugin.
TC already have an ability to display short 8.3 names that can be stored on some file systems.
I ask to add a field to plugin to get True/False result on whether file has 8.3 name or not.
Indeed, since AFAIK technically file may have only 8.3 name
(Explorer will show it, since there is no long one),
similar field True/False field for long names is also worth to be added.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply