Page 1 of 1

View with options like F4Menu

Posted: 2009-05-20, 04:20 UTC
by margolis22
I have several content viewer plugins and prefer one over another depending on what I am viewing, it would be nice to have the ability like F4Menu for viewing purposes.

Re: View with options like F4Menu

Posted: 2009-05-20, 08:23 UTC
by nsp
margolis22 wrote:I have several content viewer plugins and prefer one over another depending on what I am viewing, it would be nice to have the ability like F4Menu for viewing purposes.
(if you target the lister [F3])
This have been already asked a bunch of time............. in TC UP, you have a lister where you can select witch plugin you want to use.

Posted: 2009-05-20, 12:23 UTC
by fenix_productions
You can achieve something similar to F4Menu with new Internal Associations system and proper use of /S=L and /I= parameters for TC startup.

Posted: 2009-05-20, 14:04 UTC
by nsp
fenix_productions wrote:You can achieve something similar to F4Menu with new Internal Associations system and proper use of /S=L and /I= parameters for TC startup.

This means rewriting/generating specific ini file for each usage and do not allows you to switch to your next viewer. This is really not as flexible as having such menu inside the lister !

Posted: 2009-05-20, 14:15 UTC
by fenix_productions
nsp wrote:This means rewriting/generating specific ini file for each usage and do not allows you to switch to your next viewer.
I must admit I had used F4Menu long ago but I thought it has no possibility of switching between viewers when you have one already loaded. Did it change? If not then it is similar to internal associations and cm_ContextMenuInternal command.

I agree that some menu / combobox with proper plugins to choose from would be nice. In the meanwhile I can press 4 in lister to get next plug.

margolis22 wrote about his preferences of getting WLX "one over another depending on what I am viewing". It can be partially fixed already by writing correct detect string for plugins.

Posted: 2009-05-20, 19:49 UTC
by ghisler(Author)
How do you distinguish the files which you want to view in one viewer or the other? If it's by extension or size, you can achieve that with the detect string. I can help you with the instructions - you can find the syntax in the lister plugin writer's guide.

Normally you just put the plugins in the preferred order, and press '4' to switch to the other of the two.

Posted: 2009-05-20, 20:49 UTC
by Boofo
What if you have 2 plugins (file and lister)? How do you make one go first in that case?

Posted: 2009-05-20, 21:16 UTC
by sqa_wizard
What if you have 2 plugins (file and lister)?
Easy:
Lister plugin goes first if you press F3,
Filesystemplugin goes first if you enter via Network Neighborhood ;-)

Posted: 2009-05-20, 21:21 UTC
by Boofo
Well, when I press F3, then filinfo plugin goes before the ICLView plugin for some reason. I want the iclview to go first in lister.

Posted: 2009-05-20, 21:26 UTC
by fenix_productions
2Boofo

AFAIK plugins are checked according to their order in wincmd.ini (or Lister plugins dialogue). First plugin which reports it can handle the file is loaded right away,
So if you want ICLView first, move it before FileInfo.

Posted: 2009-05-20, 21:50 UTC
by Boofo
Here's what I have in the lister section of the INI:

Code: Select all

2=D:\Software\Total Commander\plugins\wlx\ICLView\ICLView.wlx
2_detect="MULTIMEDIA & ext="ICL" | ext="ICO" | force"
3=D:\Software\Total Commander\plugins\wlx\fileinfo\fileinfo.wlx
The fileinfo always shows first for some reason.

Posted: 2009-05-21, 11:03 UTC
by Boofo
Should I make a new thread for this question?

Posted: 2009-05-21, 11:39 UTC
by fenix_productions
2Boofo
Your INI forces ICLView for ICO and ICL files so no problems with them here.

What file types are you trying to open with it?

Maybe try to change detect string a little bit. You will find full description in Lister plugins SDK.

Posted: 2009-05-21, 11:43 UTC
by Boofo
I am opening EXE files. It shows the fileinfo first and on key 4, it shows the icons. As the plugins are listed it should show the icons first.

Your solution was the answer. I changed the line in the INI to this:

Code: Select all

2_detect="MULTIMEDIA & ext="ICL" | ext="ICO" | ext="EXE" | force"
and now it shows the icons first. Thanks for the suggestion. ;)

Posted: 2009-05-21, 12:44 UTC
by nsp
ghisler(Author) wrote:How do you distinguish the files which you want to view in one viewer or the other?
For some reasons, you want to see the "same file type" with different viewer... But you do not want to use the [4] key to go from one lister to another. You want the ability to choose which will be used/tried with a menu.