Default Lister for a Filetype and Switching Listers in Quick View Panel

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
risk
Junior Member
Junior Member
Posts: 85
Joined: 2007-07-30, 03:18 UTC

Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *risk »

I have Imagine Lister with WebP plugin installed as one of my Lister plugins. I cannot see WebP files when I press Ctrl+Q. I can view a WebP file using F3, but I need to press 4 to switch viewers to Imagine. I have two questions:

1. How can I switch viewers in Quick View Panel or have it use Imagine for WebP files?

2. How can make TC use Imagine when I press F3 on a WebP file without the need to switch viewers with 4?

Thank you in advance.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *nsp »

2 points to verify:
  • You should verify that webP extension is registered with imagine.Open %commander_ini% or use tools like plugman or ultra TC Configuration Editor. (replace xxx by the registered position for imagine)

    Code: Select all

    xxx=%COMMANDER_PATH%\plugins\wlx\Imagine\Imagine.wlx
    xxx_detect=MULTIMEDIA | ext="WEBP"
  • if you still have some issues, you can reorder an put imagine plugin in top of the list.
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *tuska »

  1. Open a .webp image in the lister with F3
  2. Menu "Options" - Configure... - Tab "Multimedia" -> [✓] Define view method by file type...
  3. Click on "Add..."
  4. Enter *.webp, then click on "OK -> Lister: view methods by file type - Please choose default view modes:
  5. Enter 4, then click "OK" -> *.webp 4 is shown
  6. OK, OK - Done!
*.webp images are preferred and automatically displayed then in the lister (imagine) with F3, 4 Image/Multimedia,
provided that during the processing of the Lister plugins (.WLX) from top to bottom
there is not another plugin which can also display *.webp images.

Only in this case you would have to change the order, i.e. move the Imagine plugin with the arrow keys ∧∨
to the desired position, which in this case is at the top, above the other plug-in.
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *petermad »

2risk
1. How can I switch viewers in Quick View Panel or have it use Imagine for WebP files?
Click on the bar with the file name on top of the image - the press 4 to change plugin.
2. How can make TC use Imagine when I press F3 on a WebP file without the need to switch viewers with 4?
Either put imagine on top on the list in Configuration - > Options -> Plugins -> Lister plugins (WLX) -> Configure ( use the up/down arrows in the lower left corner to sort the plugins)

Or use the "Define view method by file type" button in Configuration - > Options -> Edit/View -> Configure internal Viewer -> Multimedia (tab). Here you must Add a new type *.webp and choose Imagine.wlx as the prime viewer for this type.
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
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *tuska »

petermad wrote: 2022-05-27, 12:01 UTC Here you must Add a new type *.webp and choose Imagine.wlx as the prime viewer for this type.
I don't know such a function yet.
How do you do that?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *Horst.Epp »

tuska wrote: 2022-05-27, 12:29 UTC
petermad wrote: 2022-05-27, 12:01 UTC Here you must Add a new type *.webp and choose Imagine.wlx as the prime viewer for this type.
I don't know such a function yet.
How do you do that?
Look on the > in the selection 4 Image/Multimedia
Here you find the list of available plugins.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *tuska »

I think I still haven't understood the statements.

But if it should be the "Plugins" menu via which "Imagine" is to be selected,
then this selection would only apply once.

At the latest after a TC restart, for example, the order from top to bottom would apply again,
i.e. if the PhotoViewer plugin was positioned BEFORE (above) Plugin Imagine,
then *.webp images would be opened with the PhotoViewer plugin.

In my opinion, Imagine can therefore only be temporarily set as the "prime viewer for this type" if you use menu "Plugins".

I don't think you should take the text "... choose Imagine.wlx as the prime viewer for this type" literally.

What is surely meant here is the following:
If the file type *.webp is set to default view mode: 4, and you want to use the plugin "Imagine" as a lister, then you have
to put this plugin at the top of the list - before any other lister plugins - that can also display *.webp images in the lister.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *Horst.Epp »

tuska wrote: 2022-05-27, 13:07 UTC What is surely meant here is the following:
If the file type *.webp is set to default view mode: 4, and you want to use the plugin "Imagine" as a lister, then you have
to put this plugin at the top of the list - before any other lister plugins - that can also display *.webp images in the lister.
You still missed the option under default view mode: 4
Its contains a sub-menu which lists all available plugins.
There you select the plugin you want as default for a certain extension.
This is not dependend on the position of plugins in the list.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *petermad »

2tuska
I don't know such a function yet.
How do you do that?
See: https://madsenworld.dk/tcmd/methodbyfiletype.png
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
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Default Lister for a Filetype and Switching Listers in Quick View Panel

Post by *tuska »

2Horst.Epp
Thanks for the explanation! :)
I actually missed that point. :(

2petermad
Thank you for the image which is also an optimal explanation for me! :)

This is the perfect method for me to display .webp images with the plugin "Imagine".
The plugin order is then irrelevant.

(The method I gave above also works, but requires prior knowledge in the sense that you know,
that the plug-ins are processed from top to bottom).

Thanks again!
Post Reply