Page 1 of 1
Lister: Alt+Shift+F3 view by default for certain types
Posted: 2015-12-15, 19:40 UTC
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.
Posted: 2015-12-15, 21:42 UTC
by Hacker
DrShark,
A workaround could be created using AutoHotkey.
Roman
Posted: 2015-12-16, 08:07 UTC
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.
Posted: 2015-12-17, 09:52 UTC
by ghisler(Author)
So something like this?
[lister]
noplugins=*.txt *.html *.xml
Posted: 2015-12-17, 10:38 UTC
by MVV
Looks like this would be enough.
Posted: 2015-12-17, 15:37 UTC
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.
Posted: 2015-12-18, 07:09 UTC
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).
Posted: 2015-12-21, 10:50 UTC
by ghisler(Author)
2DrShark
You don't need an extra configuration for this. Just add the filter to all the plugins in [listerplugins] section.
Posted: 2015-12-21, 17:40 UTC
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.
Posted: 2015-12-21, 20:12 UTC
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...