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

If you append <<bla-bla-bla to file's real path of cource TC will treat it like part of filename. It is too complex to split real path on real path and icon path every time. You may create a LNK for CMD and add it to VP to get custom icon.
You are right export support filemask ! but in the help i get:
Please read Readme again - both export and save command definitions contain [<mask>] parameter. :)
I can anyhow do it using VPBatch and some env variable.
Gread idea to use envvar for default filelist. :)
BTW you can start TC with predefined envvar for filelist path - and use this variable in VirtualPanel.ini too.
User avatar
nsp
Power Member
Power Member
Posts: 1939
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:If you append <<bla-bla-bla to file's real path of cource TC will treat it like part of filename. It is too complex to split real path on real path and icon path every time. You may create a LNK for CMD and add it to VP to get custom icon.
...
Why not doing it always exept when calling >edit ?
Detect File is easy on trimmed string :
Script start with <
Anything else do not start with < and < is not supported in filename.

I do not want to use lnk because i have to double my scripts files in scripts folder (it is ugly and do not allow me to use F3/F4 keys to access real file...). I planned to use VP as a convenient file bookmark (this is already what i do and even more) but i miss icon support :( (I will not bother you anymore about this :evil:)
MVV wrote: Gread idea to use envvar for default filelist. :)
BTW you can start TC with predefined envvar for filelist path - and use this variable in VirtualPanel.ini too.
Nope, I change deflist from VP with scripts so it is more convenient for me to get it from inifile at each backup.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I don't want to scan whole real path for '<<' sequence every time it is requested - it is requested quite frequently.
Currently I scan only scripts only during icon extraction and search only for first '<' from end of script text (if '<' char is doubled, the rest of line is icon path, else default icon is used).
User avatar
nsp
Power Member
Power Member
Posts: 1939
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:I don't want to scan whole real path for '<<' sequence every time it is requested - it is requested quite frequently.
Currently I scan only scripts only during icon extraction and search only for first '<' from end of script text (if '<' char is doubled, the rest of line is icon path, else default icon is used).
I was hopping you had internally a struct populated at creation/modification time with the separated strings. It is fair that you do not plan to slowdown VP.
VP is my most used wfx for this i thank you a lot ! ((i've tried to adapt "File Redirector 5.4" for my needs but i quicly switched to VP )
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I have internal object called VirtualSystem with maps of structs, but there is no separate field for file icon of course.


Intermediate VP version released.


VirtualPanel 1.0.0.900:
+ log now shows thread id (for background threads detection)
* correct retrieving plugin version info on Windows 2000
* some optimizations and small fixes

Some standard objects were replaced by own ones (e.g. wstring) so file size was decreased.

VirtualPanel 1.0.0.900 at totalcmd.net


VirtualPanel 2.0 release is suspended for uncertain term because of problems with drag-n-drop from window created in background thread.
User avatar
nsp
Power Member
Power Member
Posts: 1939
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:VirtualPanel 1.0.0.900:
Since updated, i have trouble with <put /l command i use a lot
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thank you for report, please update to fixed version.


VirtualPanel 1.0.0.904:
* wrong filelists processing e.g. in put command (after some changes in 1.0.0.850)

VirtualPanel 1.0.0.904 at totalcmd.net
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

hi,

I am starting to look into this plugin as I think it might be very useful for my usage of TC. But before I dig into the details I need to know one simple thing as depending on the answer my whole usage will vary:

is there just a single vp or several can be used at the same time? My usecase would be to use a vp for everything related to a project, and I have several projects.


Also, I have started reading the whole tread but it is very long, so I am afraid I am reading outdated information. Could you point out to some specific post where how to setup a vp with a number of files/folders and ini options is explained? Or is your post from 'Mon Oct 26, 2009 1:49 pm' still the best way?

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

Post by *MVV »

is there just a single vp or several can be used at the same time?
AFAIK this was discussed many times. You may use different folders of single plugin or you may install any number of VPs to different folders (or even into same folder but with different plugin names) and create separate INI file for every copy (file must have same name but extension INI) so every copy will use its own configuration and state file.
Could you point out to some specific post where how to setup a vp with a number of files/folders and ini options is explained?
I explained the way above. You need several copies of VirtualPanel.wfx (you may name them as you like and keep in same folder - VirtualPanel01.wfx, VirtualPanel02.wfx, VirtualPanelProjectX.wfx etc) and an INI for each. Then install all of them using TC fs plugins cfg dialog (you may use any names there). Don't forget to set separate state file for every copy (use cfg dialog of each copy or just edit INI after first using to set DefFileList parameter - by default it will point to file in %TEMP%).
Last edited by MVV on 2010-12-15, 13:33 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1939
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

jmwap wrote:hi,

I am starting to look into this plugin as I think it might be very useful for my usage of TC. But before I dig into the details I need to know one simple thing as depending on the answer my whole usage will vary:

is there just a single vp or several can be used at the same time? My usecase would be to use a vp for everything related to a project, and I have several projects.


Also, I have started reading the whole tread but it is very long, so I am afraid I am reading outdated information. Could you point out to some specific post where how to setup a vp with a number of files/folders and ini options is explained? Or is your post from 'Mon Oct 26, 2009 1:49 pm' still the best way?

thanks!
From a VP addicted user !

There is only one VP at the time, but you can have as many list as you want. --- Edited Part ---
The only way i found to have several VP is to install it and rename it.
Standard name is Virtual Panel and you can only have one plugin by FS name.
-- - End of edited part - --
I personally use project wise VP. Depending on what i work i load a different list.
You may also have One VP with different virtual folder that correspond to your different projects.

There are a lot of possibilities using >vp scripts but as many advanced feature in softwares it will not be free. (Learning curve must be taken in consideration)

About accurate information, the best is to download the plugin and to read the readme.txt. Don't be scared if you see unreadable char on top of the file (English part start after line 200)
Last edited by nsp on 2010-12-15, 13:47 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 »

but as many advanced feature in softwares it will not be free
I would use easy instead of free. Plugin is absolutely free. :D
Don't be scared if you see unreadable char on top of the file (English part start after line 200)
First three lines are in English. :)

Code: Select all

VirtualPanel plugin for Total Commander
---------------------------------------
(English section is below)
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

thanks guys for the replies.
is there just a single vp or several can be used at the same time?AFAIK this was discussed many times.
sorry, didn't see it explicitely mentioned in the 5 pages I read, neither in the readme.

Anyway, single plugin with different folders is working fine. I have created two folders ProjectA and ProjectB, when I enter them I get all interesting files related to each project.

As the icing on the cake my twinkey folder colouring is working perfectly with these folders. This already saves me from having a handful of tabs open...

Couple of questions so far:
1. once I have <Refresh, how are you suppossed to modify it? Cannot just F4 it

2. both my projects A and B have same folder structure, files etc, but each one lives in a different path on my disk. So if when I enter ProjectA, before running <Refresh, I could run a cmd I have that sets envvar PROJ_ROOT, and then <Refresh uses %PROJ_ROOT% when puting files etc, my <Refresh file could be the same for both projects.
Is this doable somehow? Maybe using exec as first thing inside <Refresh?

I still have to understand many things as this is quite complicated, but at the same time very powerful, but at this state already this is very useful!!
I'll continue to improve how I'm using it...nice work MVV
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

and a couple of small things you might want to fix for newbies:

1. in Readme it says 'AutoUpdateName', in ini file is 'AutoUpdateScriptName' (maybe you are aware of this and are back compatible with older name, in this case disregard this)

2. to put a folder
<put /d . path_to_folder\project works
<put . /d path_to_folder\project doesnt
but it some post of yours i read
<put . /l E:\Video\*.mls
so maybe sometimes the / parameter can be after virtual_path and sometimes can't?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

1. once I have <Refresh, how are you suppossed to modify it? Cannot just F4 it
Just execute in command line:

Code: Select all

<edit >Refresh
(where >Refresh is relative or full path to script)
So if when I enter ProjectA, before running <Refresh, I could run a cmd I have that sets envvar PROJ_ROOT, and then <Refresh uses %PROJ_ROOT% when puting files etc, my <Refresh file could be the same for both projects.
It is impossible because <exec starts new application and it gets new environment - envvars changes will be applied only to that application's environment. But you may try to write general script that will accept folder name as parameter - and to pass corresponding folder name in every >Refresh script. E.g. in \ProjectA folder you may have >Refresh script with text <exec \>MainRefresh "path_to_folder\projectA" and in root VP folder you may have >MainRefresh script with text like <silent do something with "%1" (script will be called with \ProjectA folder as working folder - i.e. . may be used to specify it).
so maybe sometimes the / parameter can be after virtual_path and sometimes can't?
Last versions allow flags only immediately after command name (I use single flags parser for all commands to reduce code size so all commands may have flags only before other parameters) - just as described in Readme and internal cfg dialog help page.

So, <put /d . path_to_folder\project should work but <put . /d path_to_folder\project and <put . /l E:\Video\*.mls shouldn't.

1. in Readme it says 'AutoUpdateName', in ini file is 'AutoUpdateScriptName'
Readme was wrong, fixed (in next release). Thanks. :)

Maybe you'll get some new ideas that fit into VP concept. :wink:
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

MVV wrote:Maybe you'll get some new ideas that fit into VP concept. :wink:
will do! But it will take me some time. First I have to investigate so many functionalities VP has...I have hardly scratched the surface.

thanks for the replies.
Post Reply