Page 1 of 1

Lister vs. QV / Different behavior

Posted: 2023-04-20, 16:14 UTC
by funkymonk
Bug or intention?


For some .epub files, TC's lister (F3) directly renders the file with a suitable lister plugin (e.g., slister/sumatra).
If I use quickview on exactly the same epub file, QV just displays a text file that is stored in the epub.

As epub is a zip compressed format it seems that QV looks into the file and extracts a text file (if one exists) for display.
Instead, lister renders the epub through the lister plugin without extracting the text file.

If no such text file is found within the epub, QV and lister both render the epub directly.

This phenomenon does not only show up with epub but sometimes also with other (compressed) formats.

Thus: Is it a bug that lister and QV behave differently or is this intended?

Re: Lister vs. QV / Different behavior

Posted: 2023-04-20, 16:52 UTC
by Gral
Set

Code: Select all

QuickViewUnzipReadMe=-1
under [Configuration] section.

Re: Lister vs. QV / Different behavior

Posted: 2023-04-20, 17:56 UTC
by Horst.Epp
I have set QuickViewUnzipReadMe=0
Epub files are previewed in Quick view using SLister.

Re: Lister vs. QV / Different behavior

Posted: 2023-04-20, 19:36 UTC
by funkymonk
Perfect. Thank you!

Re: Lister vs. QV / Different behavior

Posted: 2023-04-26, 10:20 UTC
by ghisler(Author)
Should I ignore the value of QuickViewUnzipReadMe when the extension is .epub? What about other extensions?

Re: Lister vs. QV / Different behavior

Posted: 2023-04-26, 11:19 UTC
by Horst.Epp
ghisler(Author) wrote: 2023-04-26, 10:20 UTC Should I ignore the value of QuickViewUnzipReadMe when the extension is .epub? What about other extensions?
At least for .epub it should be ignored.

Re: Lister vs. QV / Different behavior

Posted: 2023-04-26, 11:59 UTC
by funkymonk
I think it is not a good idea to exclude specific extensions by default. Unless the list of ignored extensions can be changed by the user.

Re: Lister vs. QV / Different behavior

Posted: 2023-04-26, 12:17 UTC
by Horst.Epp
funkymonk wrote: 2023-04-26, 11:59 UTC I think it is not a good idea to exclude specific extensions by default. Unless the list of ignored extensions can be changed by the user.
Why not, a epub file will never contain a readme which the user wants to see on browsing thru files.

Re: Lister vs. QV / Different behavior

Posted: 2023-04-26, 13:13 UTC
by funkymonk
Horst.Epp wrote: 2023-04-26, 12:17 UTC
funkymonk wrote: 2023-04-26, 11:59 UTC I think it is not a good idea to exclude specific extensions by default. Unless the list of ignored extensions can be changed by the user.
Why not, a epub file will never contain a readme which the user wants to see on browsing thru files.
Depends on the use case.

BTW: Some other (compressed) formats do also contain text files, e.g., with some meta information. Sometimes the user might want to see the contained text file -- sometimes not. Thus: the list of ignored extensions should be modifiable by the user.

Re: Lister vs. QV / Different behavior

Posted: 2023-05-01, 09:29 UTC
by ghisler(Author)
At least for .epub it should be ignored.
Currently QuickViewUnzipReadMe=-1 does this - it doesn't show included readme files unless the extension is one of the archive extensions (where a packer icon is shown). Maybe I should make this the default?