[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: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Having a tree like and a branch like presentation options.
Tree is there already (in last version separator position is set to 0 because it doesn't work yet but it presents :)).
Branch view... maybe... in future versions...
Ability to flag/filter if "link" come from script or by manual operation.
Option to visually select/see dependent script from the explorer
Please describe it with details (I can't understand it).
Ability to load a saved filelist in the explorer to use with current VP.
You need to load script to a new folder and open explorer at that folder. Explorers and TC works with same VP. You may write a simple script that will do it. :)
-> Bug/limitation
it is not possible to drag from oneVP to another trough the explorer.
Why? Links and scripts may be dragged already.

Virtual folders - yes, now can't (we need to enumerate entire contents and list it in drag data).
Another heavy task is to drag to external applications because we need to recreate structure in temporary folder (even if we're dragging a single file if its virtual name differs from real one) and specify path to that structure (drag data must contain physical paths). But I think I'll realize it.
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Post by *CharlesF »

MVV wrote:Hi to all! :)

I've uploaded current beta version of VP 2.0 here, you may test it if you want (enter 4-digit code from picture and press Enter, you'll get a link).

Main addition is Virtual Explorer that allows to have any number of background browser windows with drag-and-drop feature between theese windows and other applications. You may open new browser window using <explore <virtual_path> command.

Currently drag-and-drop is supported only for existing files from virtual folders (dropped files get original names, next versions will keep virtual names - but only between VP browser windows, because d-n-d to external applications require full paths to original names), two view modes, rename, delete from virtual folders, supported keys like F2, Ctrl+R, Shift+F6, Ctrl+F1/F2, Backspace, Alt+Left/Right.

I think I'll add some standard toolbar buttons like back/forward/refresh etc onto browser toolbar, also I think sometimes tree will work... or I kill it. :D

One of another changes is that <put command allow to add folders from filelists generated using commands like cm_SaveSelectionToFile (older versions has skipped folders because of trailing slashes).

It would be great if you get some ideas or bug reports. :)


File link is updated on 2011-04-04, some bugs were fixed, now it is possible to keep virtual names while dragging, also script files may be dragged.
Not sure what I'm missing, but when I click on the link, I don't see any picture with a 4 digit code in it.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems that for foreign users there are additional steps like watching ads.
Maybe this link will work better?
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Post by *CharlesF »

MVV wrote:It seems that for foreign users there are additional steps like watching ads.
Maybe this link will work better?
Got it. Thanks.

Regards,
Charles
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:
Ability to flag/filter if "link" come from script or by manual operation.
Option to visually select/see dependent script from the explorer
Please describe it with details (I can't understand it).
- I have some virtual folder with autoscript or manual script that populate completelly a folder. In those folder i also add for time to time manual link that are removed or not when the script run. It could be fine to have an hightlight or color that show that the origin of the link is a script or a manual operation. (and why not a custom column)

- If you have a script that use another script it could be cool to have a button bar that highlight dependent scripts in the explorer treeview.
MVV wrote:
Ability to load a saved filelist in the explorer to use with current VP.
You need to load script to a new folder and open explorer at that folder. Explorers and TC works with same VP. You may write a simple script that will do it. :)
Except that the temporary folder is visible and i have to delete it after explorer is closed... But it is an acceptable behavior.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

- I have some virtual folder with autoscript or manual script that populate completelly a folder. In those folder i also add for time to time manual link that are removed or not when the script run. It could be fine to have an hightlight or color that show that the origin of the link is a script or a manual operation. (and why not a custom column)

- If you have a script that use another script it could be cool to have a button bar that highlight dependent scripts in the explorer treeview.
Well, its much clearer. But I think it is too specific tasks while I'm trying to minimize plugin's size. Main explorer task is to allow drag-n-drop between VP and other applications.

You may use one temporary folder for loading scripts, so you erase its contents before using every time. Also you may purge it on plugin unloading.
Last edited by MVV on 2011-04-07, 09:06 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Beta of Virtual Panel 2.0 (1064)

New in 1048:
A bit optimized, virtual folders with subfolders now may be dragged between two browser windows (even between different TC instances).
Also shortcuts *, Ctrl+A, Ctrl+-, Ctrl++ were added, Del key allows to remove folders with subfolders (recursive flag added).
Drag from subfolder of real folder link now works (real path was determined incorrectly).


New in 1064:
Delete now works exactly as in TC (Del - removes virtual items, Shift+Del asks for deleting physical).
Some toolbar buttons (drop-down menus now not working).
Auto-resize Name column in full view.
Date now is formatted using Windows API (so locale settings are used).
Drop and delete operations may be logged (for drop operation additional event was added and a checkbox in cfg dialog).
Fixed black on black if no color settings in wincmd.ini.
pvav68
Junior Member
Junior Member
Posts: 10
Joined: 2011-04-10, 09:06 UTC
Location: Slovakia

Post by *pvav68 »

I have folder with many different files like:

c:\TEMP\xxx_january_01.doc
c:\TEMP\xxx_january_01.xls
c:\TEMP\xxx_january_02.xls
...
c:\TEMP\xxx_february_01.doc
c:\TEMP\xxx_february_01.xls
c:\TEMP\xxx_february_02.xls
...

Colud you advise me to create refresh script to select all xls files which contain word "january" and they are > 100 kB

I create virtual folder \JanuaryBigXLS and add script

Code: Select all

<add >Refresh {<silent<del *.*<put . C:\Temp\*_january_*.xls}
but I do not know to add condition for size of files.

Thanx
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, you may filter added files only by mask - you did it. Next, you may remove unwanted files from list using <ifcond and <del:

Code: Select all

<for %f . * { <ifcond { size < 102400 @ %f } { <del "%f" } }
You just need to append this to your script. So, command for script file creation (note doubled %-characters):

Code: Select all

<add >Refresh { <silent <del * <put . C:\Temp\*_january_*.xls <for %%f . * { <ifcond { size < 102400 @ %%f } { <del "%%f" } } }
pvav68
Junior Member
Junior Member
Posts: 10
Joined: 2011-04-10, 09:06 UTC
Location: Slovakia

Post by *pvav68 »

And I expand my assignment:
Folder C:\TEMP can contain subfolders with files too:
c:\TEMP\01\xxx_january_03.doc
c:\TEMP\01\xxx_january_03.xls
c:\TEMP\02\xxx_january_04.xls
c:\TEMP\02\001\xxx_january_05.xls
c:\TEMP\02\001\xxx_january_05.doc
...

Virtual folder \JanuaryBigXLS should contains subfolders too with the same conditions as described in previous post.

Thanks again for your help
pvav68
Junior Member
Junior Member
Posts: 10
Joined: 2011-04-10, 09:06 UTC
Location: Slovakia

Post by *pvav68 »

I do not know where the problem is but command

Code: Select all

 <add >Refresh { <silent <del * <put . C:\Temp\*_january_*.xls <for %%f . * { <ifcond { size < 102400 @ %%f } { <del "%%f" } } }
not create a script ">Refresh" in virtual folder and in this virtual foder are xls files smaler than 100 kB too (unwanted files were not removed)...

When I add ".*" in first <del:

Code: Select all

 <add >Refresh { <silent <del *.* <put . C:\Temp\*_january_*.xls <for %%f . * { <ifcond { size < 102400 @ %%f } { <del "%%f" } } }
the script ">Refresh" is created in Virtual folder, but unwanted files were not removed.
Last edited by pvav68 on 2011-04-10, 15:53 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Please create test script using command:

Code: Select all

<add >Test {<for %%f . * {<ifok "%%f" {} {}}}
Then execute it - if it will show truncated names, it is the reason (I found this bug just now). So, refresh script just can't process files because <for passes wrong names.

Also please note that script described in my previous post will delete itself too. :D So you need to protect it with read-only attribute (you may disable auto-refresh temporary or create a script with another name, set attribute and then rename it to >Refresh).


How many subfolders do you have in c:\TEMP? Currently you can't add directory structure using <put, it works only with single folder or filelist.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

A file list file.lst includes:

C:\temp\folder1\a.ini
C:\temp\folder2\a.ini
C:\temp\folder3\a.ini

So there are 3 files in 3 different folders, all files are named a.ini.

If I load the file list with
<put /l . "file.lst"

virtual panel confirms "3 files loaded" but displays 1 icon only for "C:\temp\folder3\a.ini". Is this a known limitation or am I doing something wrong? I'd like for the virtual panel to show all the 3 files. Thanks.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

sgp, by default <put command replaces files with same names. But you may specify flag /a to enable auto-rename feature (so just use <put /al).
pvav68
Junior Member
Junior Member
Posts: 10
Joined: 2011-04-10, 09:06 UTC
Location: Slovakia

Post by *pvav68 »

I execute test script and script ">Test" was created in Virtual folder. No files were added - I do not know what do you mean with "it will show truncated names"... :(
MVV wrote:Also please note that script described in my previous post will delete itself too.
- then I realized.
Post Reply