[WFX] VirtualPanel: Temporary panel for TC

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
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Just read the previous topic page to know about the secret recursive flag for <save command. :roll: But it seems that <save should be always recursive (all old versions worked in that way)... I think I'll document /r flag for <save command.
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:Just read the previous topic page to know about the secret recursive flag for <save command. :roll: But it seems that <save should be always recursive (all old versions worked in that way)... I think I'll document /r flag for <save command.
GREAT !!!!!

I was on vacation at end of august and missed this interesting discussion :oops:

:Suggestion:
Could it be possible to have a kind of export which append to existing file ?

And/OR having multiple mask
<export d:\x.lst . *.exe *.ini a*.zip | z*.*
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think you can join listings yourself and it should work even with compact list format (first line of every list is always full so no problem here). Every listing ends with line break so it is possible to use even copy /b list1+list2+list3 listOut command.
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:I think you can join listings yourself and it should work even with compact list format (first line of every list is always full so no problem here). Every listing ends with line break so it is possible to use even copy /b list1+list2+list3 listOut command.
Just wanted to avoid to manage multiple temporary filenames from my batch. I also try to find a way to get exported list filtered as i see in TC.

I also noticed that i cannot use anymore <exec \VPProg\MyBatch if MyBatch is a cmd file.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is much slower to handle multiple masks, you need to check every mask for every file (MxN checks). And, it is bad idea to allow list appending because generic formats/encodings/etc may differ.
I also noticed that i cannot use anymore <exec \VPProg\MyBatch if MyBatch is a cmd file.
Works for me...

You can also try <exec cmd.exe /c ""yourbatch" parameters"...
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:It is much slower to handle multiple masks, you need to check every mask for every file (MxN checks). And, it is bad idea to allow list appending because generic formats/encodings/etc may differ.
I do not understand your "much" slower !
If i use 4 masks like *.exe *.cmd *.ini *.zip with N Files, you do not have to do 4*N tests (only on the worst case). The first match should stop evaluation. You only process one file list against 4 masks sequentially.

If you do not have the feature and need the same result :
You process 4 times : one list against one mask ( already slower than the wost case of having 4 mask processed against on list) you join files and you delete files... What seems to be slower ?

You ague that appending can cause trouble because it is not the same format, i think this is up to the user to know about it. If i must use copy 1.txt + 2.txt + 3.txt in 6.txt the resulting file will correspond to what was defined and if i mixed unicode ansi and utf8 this is up to me.

I can also understand that you find those features completely useless and do not plan to implement it.
My idea is to build easily a %L from VP using export from a node as simple as :
cmd /c
VPBATCH ^^export "d:\tmp\VPList.txt" . %S & doMyStuff.cmd d:\tmp\VPList.txt

--Edit I also know that the list should be directly created from TC But it is in very very very difficult to get it from C.G. :((
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can test new version before I release it.

Virtual Panel 2.0.6.1250:
+ <convert command
+ multiple include/exclude masks support in <for, <export, <save commands
+ append list flag for <save, <export commands
* null characters in ANSI exported lists

Test buttonbar button for <convert:

Code: Select all

Command: VPBatch.exe
Parameters: ^convert %F %F.lst .

Translators, there are some changes in LNG (some new flags), please check it.
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:You can test new version before I release it.

Virtual Panel 2.0.6.1250:
+ <convert command
+ multiple include/exclude masks support in <for, <export, <save commands
+ append list flag for <save, <export commands
* null characters in ANSI exported lists

Test buttonbar button for <convert:

Code: Select all

Command: VPBatch.exe
Parameters: ^convert %F %F.lst .

Translators, there are some changes in LNG (some new flags), please check it.
It works also using %L if i do not add terminal "."

The multiple masks using {} as delimiters works fine, single mask do not need braces for backward compatibility it is good !

Appending is not working properly. /e option works like /f. (No warning if file exists but not appending)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, it works, and Readme tells about that. But processing of just names is faster (don't need to strip \\\Virtual Panel\ part, also filelist is smaller).

Braces {} are needed only because of spaces between masks that shouldn't break single parameter, i.e. you can use something like this:

Code: Select all

{"hello world.*" "12 34.*" | bla-bla-bla}
And I don't need to write any code to parse parameters in braces, it is already done for inner scripts.
Single mask (*.exe or even |*.exe) doesn't contain extra spaces so works here.

Hm-m, really doesn't work (but it did :D), thanks for the report.
Sh#t, I reverted that function to older version after modifying... :?

Please download fixed version.
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote: Hm-m, really doesn't work (but it did :D), thanks for the report.
Sh#t, I reverted that function to older version after modifying... :?

Please download fixed version.
Version 2.0.6.1252 fix it ! Save and export really appending to file !

This is a big "Merci !" for those very useful enhancement !
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

New Danish translation can be downloaded at http://madsenworld.dk/tcmd/wfx_VirtualPanel_2.0.6.1252_Danish.zip
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

petermad, thanks, please translate also new flag for <save and <export commands (flag 'e').
e - append list

I've made <convert faster when %F used in deep folders (search begins from folder handle and not from root as in case of %L so only one level is processed).

Beta 1254
Last edited by MVV on 2012-10-20, 18:20 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV
I have updated the translation - please redownload (same link)

It is not easy to spot the differencies between the new and old lng file in a 2384 charaters long line !
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I understand you :) have same problem. Need to split that line using regex to compare (replace \\n with \\n\n and then back).

Thanks, package (previous post) updated.
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

2 MVV
Updated Czech translation (v2.0.6.1254) you can find here: http://ghisler.ch/board/viewtopic.php?t=35471
Post Reply