BetterZip Quick Look Generator 1.1

So, I have been busy the last week, implementing everything you wished for since the last release. Well, nearly everything. I have added the most excellent prototype.js framework and the spectacular script.aculo.us effects library and a little Javascript and CSS magic of my own to recreate the outline view (the tree thingy) we are used from the Finder in HTML. Neat. It's of course much slower than the tree in BetterZip or in the Finder when opening/closing folders in large archives, but it's there if you need it.

I have added a configuration panel which lets you set various aspects of the file list. I had the intention to save the settings in a cookie, but unfortunately cookies do not work in Quick Look generators. So, the settings will be reset every time. To soothe your suffering I have added a configuration file in the bundle where you can easily set your preferred options. Read all about it in the Read me, please file or on the brand new product page.

You can quickly download it here.

As always, I am looking forward to reading your feedback.

Comments

This is awesome!

Nice addition to QuickLook.

Purely cosmetic, but the "Powered by BetterZip, Better archiving for your Mac" banner is displaced to cover the "Attributes" column if the Path name is too long.

The latter needs to be wrapped earlier.

Android: Thanks for the hint. I'll fix that with the next version.

Nice customisation thing. Pity they can't be saved from there but the config file is good enough for me.
Just a few nitpicks though:
- The popup is rather slow to roll out. Also, it rolls out a bit further than it should and then jumps back to the correct size.
- The Date Modified label for the archive itself is now taking up two lines.
- Fixing the header doesn't fix the column headers. Wasn't that half the point?

- Yeah, I am not 100% satisfied myself, I'll try to tweak the behavior of the pop-up a little for the next version.
- The date label seems to break only under certain circumstances. It didn't happen with my test archives, but I have now found some with which I can reproduce the problem. I'll fix it with the next version.
- Well, that's HTML. I will have to play around with Javascript some more to get this to work. Or if anyone knows a better way (plain HTML/CSS), please let me know.

Nice program, unfortunately it conflicts with quickchm. A Quick Look plugin that can generate preview of the first page of a chm file.

https://sourceforge.net/project/showfiles.php?group_id=211847

Please let me know if there is a work-around.

You can disable chm support in the BetterZip QL generator, but it's a bit of a hack. To do this, right-click the BetterZipQL.qlgenerator bundle that you copied to your /Library/QuickLook folder and select "Show Package Contents" from the context menu. Now open the Contents folder in the new window and open the file Info.plist in a text editor like TextEdit. Find the line 121 (in TextEdit press Command+L and enter 121). You will be taken to a section that reads:

<dict>
<key>CFBundleTypeRole</key>
<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.chm-archive</string>
</array>
</dict>

Delete the entire section (8 lines). Be careful not to delete or change anything else. Finally, save the file. That's it.

If i remove all that special effects from index.html, the plugin displays the archive contents about 1000% faster... any chance for a "Light" version in the future? Javascript is all nice and stuff, but please do the heavy computing where it should be done.

The "heavy computing" needs to be done in Javascript. It's all about opening/closing folders and toggling the display of hidden items. And that's interactive, i.e., it can't be prepared in ObjC. The next version will probably have a (configurable) threshold that will not add the interactive part for larger archives.