[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 »

I seems the readme file is incomplete:
- Russian: no mention r flag for <save
- English: no mention e and r flags for <save; no mention e flag for <export.
Thanks, don't know how I missed that. I've added e (append to existing list) and r (recursively) flags to both functions in both Readme sections.
what is the purpose of [<virtual_path>] ?
Third parameter allows to specify starting virtual path where to search names from %F filelist (it should be faster than to use %L when you're in deep folder 'cause there are much less levels to enter - every folder contains a map where names must be located). I'll note that in Readme, it may be really unclear (today I've read the source to remember that :D).
convert <source_filelist_path> <filelist_path> [<virtual_path>]
Converts list of virtual names or paths (that may be got via TC parameters like %F, %L, %WF etc.) into list of physical paths to files. Parameter virtual_path sets base virtual path for relative paths in a list (e.g. it should be path to folder with files whose names are listed by %F or %WF);
myki
Junior Member
Junior Member
Posts: 15
Joined: 2013-01-01, 20:45 UTC

Post by *myki »

Hello :-)
Sorry, i didn't read all pages of the thread, may be it has already been answered...
But is it possible to launch at least two virtual panels in the same TC window ? (2 tabs or 1 to the left and 1 to the right)
Thanx for your help !
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

myki,
You can open any number of tabs with VP folders, also you can install multiple VP instances, just create VirtualPanel.ini file in each installation directory to separate their settings. But it is better to use simply different folders of same VP installation.
myki
Junior Member
Junior Member
Posts: 15
Joined: 2013-01-01, 20:45 UTC

Post by *myki »

Using different folders... why i never thaught about that before ?? Sometimes i look for complications...
It is perfect for me, thank you and happy new year :-)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You're welcome! Happy New Year! :)

BTW check configuration dialog, maybe you'll want to change default list file location (which is in TEMP directory) or enable auto-save feature.
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Hi

I missed the German translation. No volunteers? Or other problems?

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Peter,
No one gave LNG to me. :)
jdrsk
Junior Member
Junior Member
Posts: 4
Joined: 2013-01-30, 22:53 UTC

Post by *jdrsk »

Hi.
I just started with Virtual Panel and have a question.

I have a problem with deletions...kinda.
If I close/restart TC, all files are back in virtual panel.
Only situation if they don't is when deletions are not the last operation.
If I delete file and then create a directory - everything is ok.

Renaming works fine, so that isn't issue with rights for temp file...I think.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

jdrsk,
Please check if VP updates your saved state file. VP should update file when you close TC so its contents and modify date should change. Also VP writes to log file when saving happens (you should enable log for file actions), e.g.:

Code: Select all

10:00:04   3944	Finalize
10:00:04   3944	SaveDeflist:	"D:\TOTALCMD\Plugins\FileSystem\VirtualPanel\Temp\vp2.lst", R=644
And, it is recommend to move default list from temp directory (default location) to some other place.
jdrsk
Junior Member
Junior Member
Posts: 4
Joined: 2013-01-30, 22:53 UTC

Post by *jdrsk »

Hi.

Here is logfile for quick test:

#1 : delete .log and .lst file in temp directory on other partition (not %TEMP%)
#2: create folder [test_dir] in VP
#3: close TC
#4: run TC and delete [test_dir] in VP
#5: close TC
#6: run TC > [test_dir] is back

13:08:50 9160 Initialize: 2013-01-31 13:08:50
13:08:50 9160 FsStatusInfo: list operation (1) is started in "\"
13:08:50 9160 FsFindFirst: 0000000009C89320, ".", for "\"
13:08:50 9160 FsFindNext: 0000000009C89320, "", R=0
13:08:50 9160 FsFindClose: 0000000009C89320
13:08:50 9160 FsStatusInfo: list operation (1) is finished in "\"
13:08:54 9160 FsStatusInfo: mkdir operation (10) is started in "\"
13:08:54 9160 FsMkDir: "\test_dir", R=1
13:08:54 9160 SaveDeflist: "T:\temp\VirtualPanel.lst", R=1
13:08:54 9160 FsStatusInfo: mkdir operation (10) is finished in "\"
13:08:54 9160 FsStatusInfo: list operation (1) is started in "\"
13:08:54 9160 FsFindFirst: 0000000009C89380, ".", for "\"
13:08:54 9160 FsFindNext: 0000000009C89380, "test_dir", R=1
13:08:54 9160 FsFindNext: 0000000009C89380, "", R=0
13:08:54 9160 FsFindClose: 0000000009C89380
13:08:54 9160 FsStatusInfo: list operation (1) is finished in "\"
13:08:58 9160 Finalize
13:09:01 5312
13:09:01 5312 Initialize: 2013-01-31 13:09:01
13:09:01 5312 FsStatusInfo: list operation (1) is started in "\"
13:09:01 5312 FsFindFirst: 0000000009D19320, ".", for "\"
13:09:01 5312 FsFindNext: 0000000009D19320, "test_dir", R=1
13:09:01 5312 FsFindNext: 0000000009D19320, "", R=0
13:09:01 5312 FsFindClose: 0000000009D19320
13:09:01 5312 FsStatusInfo: list operation (1) is finished in "\"
13:09:04 5312 FsStatusInfo: delete operation (8) is started in "\"
13:09:04 5312 FsFindFirst: 0000000009D19320, ".", for "\test_dir"
13:09:04 5312 FsFindNext: 0000000009D19320, "", R=0
13:09:04 5312 FsFindClose: 0000000009D19320
13:09:04 5312 FsRemoveDir: "\test_dir", R=1
13:09:04 5312 SaveDeflist: "T:\temp\VirtualPanel.lst", R=0
13:09:04 5312 FsStatusInfo: delete operation (8) is finished in "\"
13:09:04 5312 FsStatusInfo: list operation (1) is started in "\"
13:09:04 5312 FsFindFirst: 0000000009D19380, ".", for "\"
13:09:04 5312 FsFindNext: 0000000009D19380, "", R=0
13:09:04 5312 FsFindClose: 0000000009D19380
13:09:04 5312 SaveDeflist: "T:\temp\VirtualPanel.lst", R=0
13:09:04 5312 FsStatusInfo: list operation (1) is finished in "\"
13:09:06 5312 Finalize
13:09:06 5312 SaveDeflist: "T:\temp\VirtualPanel.lst", R=0
13:09:08 8688
13:09:08 8688 Initialize: 2013-01-31 13:09:08
13:09:08 8688 FsStatusInfo: list operation (1) is started in "\"
13:09:08 8688 FsFindFirst: 000000000B0F9320, ".", for "\"
13:09:08 8688 FsFindNext: 000000000B0F9320, "test_dir", R=1
13:09:08 8688 FsFindNext: 000000000B0F9320, "", R=0
13:09:08 8688 FsFindClose: 000000000B0F9320
13:09:08 8688 FsStatusInfo: list operation (1) is finished in "\"
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

jdrsk wrote:Hi.
I just started with Virtual Panel and have a question. ...
Me too :D

a) The log file displays only the first line (the "section") and on second line always the newest one. I never get more then two lines.

b) I have problems with the "special icons". Is it a must to define the icon number? When should the "RemovedFolderIcon" be displayed?

Regards

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

jdrsk,
It seems that save function doesn't truncate the file after writing data (so old contents remains at the end of file). I'll check it.

As I see, you have enabled save after each action. It is very slow, I would recommend to use autosave timer.

Peter,
Have you set log file size limit? Please post your Virtual Panel configuration section of fsplugin.ini.

Special icons for inaccessible physical objects are displayed when you add e.g. file to VP and then delete or move that file while link remains. In such case VP will show striked file icon. It is not necessary to redefine it. :)
jdrsk
Junior Member
Junior Member
Posts: 4
Joined: 2013-01-30, 22:53 UTC

Post by *jdrsk »

MVV
It seems that save function doesn't truncate the file after writing data (so old contents remains at the end of file). I'll check it.
Yes, behaviour is sometimes very weird.
That solution I describe in first post is not that simple.
Anyway, I can't leave VP empty.
As I see, you have enabled save after each action. It is very slow, I would recommend to use autosave timer.
Thanks for that tip.
I think it depends how to use VP.
For now I'm using it for temporary stack for files copied from different locations to single destination. Or just stack/clip for more files.
After that - I don't need them there anymore.

Anyway I think about making some kind of virtual collections there, so Your tip about autosave will help.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

When you have a lot of items in VP, it may be really slow to save deflist after adding/removing/renaming any item. Timer allows to reduce number of savings. It doesn't save state if there were no changes since last save.
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

MVV wrote:...Have you set log file size limit? Please post your Virtual Panel configuration section of fsplugin.ini....

Special icons for inaccessible physical objects are displayed when you add e.g. file to VP and then delete or move that file while link remains. In such case VP will show striked file icon. It is not necessary to redefine it. :)

Code: Select all

[Virtual Panel]
DefFileList=d:\\xx\virtual.txt
LogPath=d:\\xx\virtual.log
LogEnabled=55
VirtualFolderIcon=d:\\Virtual.ico,1
AutoUpdateScriptName=
EnableAutoScripts=4
Language=German
RemovedFolderIcon=d:\\Ordner.ico,1
RemovedFileIcon=d:\\Fehlt.ico,1
AutoSaveInterval=60
MaxLogSize=20
AutoSaveListOnEachOp=1
DefFileListNewFormat=1
SaveIniOnUnload=1
Explorer.RenameByF2=0
Explorer.RightPixels=0
MVV wrote:......are displayed when you add e.g. file to VP and then delete or move that file while link remains. In such case VP will show striked file icon. It is not necessary to redefine it. :)
This is what I thought, but e.g. I rename pysical folder "test" to "test - off". Then the virtual folder "test" stays unchanged, but all files in this folder get the "removed icon".
Why not the folder?

Ctrl+Left/Right:
Only on files it changes to the "physical files"; on folders it changes to "virtual folders". Right? Can it be changed?

File size limit:
Which unit? KB or number of lines?

Virtual Explorer:
Where to find and use commands like 59=Go back
60=Go forward
61=Go to parent directory
62=Reread
63=Brief view
64=Full view

Regards

Peter
TC 10.xx / #266191
Win 10 x64
Post Reply