Skip to content

Modernized Preview#2

Open
mbrotz wants to merge 11 commits into
srirangav:masterfrom
mbrotz:master
Open

Modernized Preview#2
mbrotz wants to merge 11 commits into
srirangav:masterfrom
mbrotz:master

Conversation

@mbrotz

@mbrotz mbrotz commented May 3, 2024

Copy link
Copy Markdown

These changes improve the layout and appearance of the generated preview to more closely match the Finder.

  • Both light and dark themes are supported.
  • Colors more closely match the Finder.
  • New svg icons for files and folders.
  • A new column shows file permissions.
  • The preview window is larger.

@mbrotz

mbrotz commented May 3, 2024

Copy link
Copy Markdown
Author

Note

Only the preview for archive files supported by libarchive is modified. The previews generated for binhex and .sit files remain unchanged. However, since i don't have compatible archives i currently cannot test them.

@koenvb

koenvb commented May 9, 2024

Copy link
Copy Markdown

@mbrotz not sure when this one is getting merged but how easy is this to build myself? Or to provide a build version of your improvements? thanks

@mbrotz

mbrotz commented May 9, 2024

Copy link
Copy Markdown
Author

@koenvb You can simply open the project in xcode and hit the run button to build it.

By the way, i talked to @srirangav via email already. He said he would be happy to merge the changes.

I also attached two screenshots here.

Manuel

image

image

@srirangav srirangav left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added support for a universal binary in the Xcode project.

@mbrotz

mbrotz commented Jul 12, 2024

Copy link
Copy Markdown
Author

Do i have to resolve the conflicts?

@romanr

romanr commented Sep 12, 2024

Copy link
Copy Markdown

Do i have to resolve the conflicts?

Conflicts are very minimal and not worth the delay. I made PR with resolved conflicts for your repo, and you can update this PR.

Modernized the layout and appearance to more closely match the Finder
@mbrotz

mbrotz commented Oct 25, 2024

Copy link
Copy Markdown
Author

Any chance this is gonna be merged anytime soon? :)

@bigplayer-ai

Copy link
Copy Markdown

Hi, I installed qlZipInfo following the instructions (placed in ~/Library/QuickLook, set permissions, and reloaded Quick Look), but it’s not working on macOS Sequoia 15.1 with an M1 Pro chip. Quick Look does not preview ZIP files. Any suggestions to troubleshoot this?

@srirangav

Copy link
Copy Markdown
Owner

Hi, I installed qlZipInfo following the instructions (placed in ~/Library/QuickLook, set permissions, and reloaded Quick Look), but it’s not working on macOS Sequoia 15.1 with an M1 Pro chip. Quick Look does not preview ZIP files. Any suggestions to troubleshoot this?

Apple has removed support for QuickLook generators and has moved to a different method in MacOS Sequoia (see: https://eclecticlight.co/2024/10/31/how-sequoia-has-changed-quicklook-and-its-thumbnails/). I don't have a good example of how to re-implement this using Apple's new method. If I can find a good example, perhaps I will be able to rewrite this.

Sorry for any inconvenience.

-ranga

@dserodio

Copy link
Copy Markdown

Thanks for the update and the link @srirangav !

srirangav added a commit that referenced this pull request Nov 27, 2024
- update to libarchive 3.7.7
@srirangav

Copy link
Copy Markdown
Owner

Any chance this is gonna be merged anytime soon? :)

Hi,

I merged some of the proposed changes into the latest version. I will merge some additional changes into the next version.

FYI, I am not sure what to do about the SVG icons because they seem to make things slower on large files on my older Macs.

Thanks,

-ranga

@mbrotz

mbrotz commented Dec 3, 2024

Copy link
Copy Markdown
Author

Any chance this is gonna be merged anytime soon? :)

Hi,

I merged some of the proposed changes into the latest version. I will merge some additional changes into the next version.

FYI, I am not sure what to do about the SVG icons because they seem to make things slower on large files on my older Macs.

Thanks,

-ranga

Hi

Great to hear! :)

Yes, i can imagine that the svg icons might cause a slowdown on large files since the svg code for every icon has to be inserted explicitly for every item. A possibility would be to simply not display them if the number of items is large, for example more than 1000 or so. I wasn't able to embed the files into the executable and then refer to them from within the generated preview. I just don't know how to reference them, if it is even possible. If the icons could be embedded into the executable we could also pre render them as png files. That might mitigate the performance issues...

Manuel

@mbrotz

mbrotz commented Apr 10, 2025

Copy link
Copy Markdown
Author

Hi

If you need me to do anything here, you have to give me a bit of help. I don't have much experience with colaborating on github...

Manuel

@bigplayer-ai

Copy link
Copy Markdown

Hi, I installed qlZipInfo following the instructions (placed in ~/Library/QuickLook, set permissions, and reloaded Quick Look), but it’s not working on macOS Sequoia 15.1 with an M1 Pro chip. Quick Look does not preview ZIP files. Any suggestions to troubleshoot this?

Apple has removed support for QuickLook generators and has moved to a different method in MacOS Sequoia (see: https://eclecticlight.co/2024/10/31/how-sequoia-has-changed-quicklook-and-its-thumbnails/). I don't have a good example of how to re-implement this using Apple's new method. If I can find a good example, perhaps I will be able to rewrite this.

Sorry for any inconvenience.

-ranga

Is it possible to integrate this into Keka or another open-source macOS file archiver, now that the standard method no longer works in macOS Sequoia 15.4?

@relikd

relikd commented Dec 12, 2025

Copy link
Copy Markdown

Hi there, I would look into porting this plugin to the new API if you want. I've built three plugins with the new API in the last few weeks. Should I use this branch or main?

Is it possible to integrate this into Keka or another open-source macOS file archiver

Keka is not open source. If you look at the github, you'll see that it doesnt contain any code.

@relikd

relikd commented Dec 12, 2025

Copy link
Copy Markdown

I've created a branch with the new API: #3. I can also look into adding support for the icon files you provided.

@relikd

relikd commented Apr 7, 2026

Copy link
Copy Markdown

If anyone is intrested, I've started my own plugin https://github.com/relikd/QLArchives (macOS 10.15+) 😉 ... if anyone is willing to create a Swift package for libarchive (or a tutorial howto), I could add support for at least 10.13, maybe earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants