Lister: Alt+Shift+F3 view by default for certain types

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Lister: Alt+Shift+F3 view by default for certain types

Post by *DrShark »

I suggest to add a parameter in wincmd.ini to define only certain extensions for which TC should use no-plugins view by default (F3 key). Maybe file headers or file size can be also be added as criteria to force no-plugins view by default.

Personally I will prefer it for html files because usually I need a quick look/work with just the text without images and formatting. This mode will be helpful also for other files showed by slow plugins.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

DrShark,
A workaround could be created using AutoHotkey.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It would be really useful to specify some WLX plugins order for specific file types and let user (not plugins) decide which plugin should be used.
Mostly I face this problem when I press F3 on e.g. AVI file and wait wait wait until lister shows me a video but I don't want to watch videos in lister at all, I just need raw contents.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So something like this?
[lister]
noplugins=*.txt *.html *.xml
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Looks like this would be enough.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:So something like this?
[lister]
noplugins=*.txt *.html *.xml
Like this, but with Lister plugin-like syntax to define file types:

Code: Select all

[lister]
noplugins="EXT="DB"&[0]="Р"&[1]="П"
This way it will be possible to define files also by content. Would be nice to define also file size there for each type in some way like EXT="DB"&size>50000000 to force Lister no-plugins view for all e.g. DB files larger than 50 mb.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Perhaps size filter may be added directly to WLX API detection string, it won't hurt there (user will be able to disable some plugin for large files).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2DrShark
You don't need an extra configuration for this. Just add the filter to all the plugins in [listerplugins] section.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Just add the filter to all the plugins in [listerplugins] section.
I understand that the approach to use WLX syntax for possible "noplugins" parameter looks like a complicated solution for simple issue, because in fact this way we're adding a virtual lister plugin which has top priority. However, adding "the filter to all the plugins" will be a lot of manual work, and may be less reliable due to plugins removing/updating. It will also be easier to transfer (copy) one configured "noplugins" parameter to different wincmd.ini configurations with different set of plugins.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW there are plugins that does really nothing, e.g. a nice one called NoDirQuickView - it just shows directory path when you press F3 instead of performing calculations. Perhaps such plugin may be placed first and its detection string may be improved...
Post Reply