Convert Figma logo to code with AI

sindresorhus logoquick-look-plugins

List of useful Quick Look plugins for developers

17,999
535
17,999
15

Top Related Projects

QuickLook generator for Markdown files.

A QuickLook plugin that lets you view plain text files without a file extension

16,984

Bring macOS “Quick Look” feature to Windows

Quick Overview

Quick Look Plugins is a curated list of useful Quick Look plugins for macOS developers. These plugins extend the functionality of macOS's Quick Look feature, allowing users to preview various file types directly from Finder without opening dedicated applications.

Pros

  • Enhances productivity by providing quick previews of various file types
  • Regularly updated with new plugins and maintained by the community
  • Covers a wide range of file formats, including code, archives, and media files
  • Easy to install and use with package managers like Homebrew

Cons

  • Limited to macOS users only
  • Some plugins may not be actively maintained or compatible with the latest macOS versions
  • Potential security risks when installing third-party plugins
  • May require manual updates for some plugins

Getting Started

To install Quick Look plugins using Homebrew, follow these steps:

  1. Install Homebrew if you haven't already:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Install desired plugins using Homebrew cask:

    brew install --cask qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize suspicious-package apparency qlvideo
    
  3. Restart Finder to activate the plugins:

    killall Finder
    

Now you can use Quick Look (press Space bar when selecting a file in Finder) to preview supported file types.

Competitor Comparisons

QuickLook generator for Markdown files.

Pros of qlmarkdown

  • Focused specifically on Markdown preview, potentially offering more specialized features
  • Lightweight and simple to install, with minimal dependencies
  • Actively maintained with recent updates

Cons of qlmarkdown

  • Limited to Markdown files only, while quick-look-plugins covers multiple file types
  • May lack some advanced features or customization options available in the broader plugin collection
  • Requires separate installation and management from other Quick Look plugins

Code Comparison

qlmarkdown:

- (NSString *)commandLineForPreviewingURL:(NSURL *)url {
    return [NSString stringWithFormat:@"/usr/local/bin/multimarkdown \"%@\"",
            [url path]];
}

quick-look-plugins (example from QLColorCode):

- (NSData *)dataForFileAtPath:(NSString *)path {
    NSString *command = [NSString stringWithFormat:@"%@ -f html \"%@\"",
                         [[NSBundle bundleForClass:[self class]] pathForResource:@"highlight" ofType:@""],
                         [path stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]];
    FILE *fp = popen([command UTF8String], "r");
    // ... (additional code)
}

The code snippets show different approaches to generating preview content, with qlmarkdown using a simpler command-line invocation and quick-look-plugins (QLColorCode example) employing a more complex method for syntax highlighting.

A QuickLook plugin that lets you view plain text files without a file extension

Pros of qlstephen

  • Focused on a specific file type (plain text and source code files without extensions)
  • Lightweight and simple to use
  • Actively maintained with recent updates

Cons of qlstephen

  • Limited functionality compared to quick-look-plugins
  • Requires manual installation and setup
  • May not support as wide a range of file types

Code Comparison

qlstephen (Objective-C):

- (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext inDirectory:(NSString *)subpath
{
    return [[NSBundle bundleForClass:[self class]] pathForResource:name ofType:ext inDirectory:subpath];
}

quick-look-plugins (Shell script):

brew install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize suspicious-package apparency quicklookase qlvideo

The code comparison shows that qlstephen is a native Objective-C plugin, while quick-look-plugins is a collection of plugins installed via Homebrew. quick-look-plugins offers a more comprehensive solution with multiple plugins for various file types, whereas qlstephen focuses on a specific use case.

quick-look-plugins provides an easier installation process and a wider range of functionality out of the box. However, qlstephen may be preferred for users who only need support for plain text and source code files without extensions, offering a more lightweight and focused solution.

16,984

Bring macOS “Quick Look” feature to Windows

Pros of QuickLook

  • Cross-platform support (Windows, macOS, Linux)
  • Extensible plugin system for adding new file type support
  • Active development and regular updates

Cons of QuickLook

  • Requires installation and setup
  • May have performance overhead compared to native Quick Look
  • Limited built-in file type support compared to macOS Quick Look

Code Comparison

QuickLook (C#):

public class Plugin : IViewer
{
    public int Priority => 0;
    public bool CanHandle(string path) => ...
    public void View(string path, ViewerContext context) => ...
}

quick-look-plugins (no code, as it's a curated list of plugins)

Summary

QuickLook aims to bring macOS-like Quick Look functionality to Windows and other platforms, offering an extensible plugin system. It provides cross-platform support but requires installation and may have performance trade-offs. quick-look-plugins, on the other hand, is a curated list of plugins for macOS's native Quick Look feature, offering a wider range of built-in file type support without additional setup. The choice between the two depends on the user's operating system and specific needs for quick file previews.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Quick Look plugins Awesome

List of useful Quick Look plugins for developers

Install

Using Homebrew

  • Run brew install <package>

Install all

brew install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize suspicious-package apparency quicklookase qlvideo
Catalina notes

To get plugins working in Catalina, you will need to remove the quarantine attribute.

Run this to see the attributes:

xattr -r ~/Library/QuickLook

And run this to remove the attributes:

xattr -d -r com.apple.quarantine ~/Library/QuickLook

Manually

  • Click "download manually"
  • Move the downloaded .qlgenerator file to ~/Library/QuickLook
  • Run qlmanage -r

Plugins

QLColorCode

Preview source code files with syntax highlighting

Run brew install qlcolorcode or download manually

QLStephen

Preview plain text files without or with unknown file extension. Example: README, CHANGELOG, index.styl, etc.

Run brew install qlstephen or download manually

QLMarkdown

Preview Markdown files

Run brew install qlmarkdown or download manually

QuickLookJSON

Preview JSON files

Run brew install quicklook-json or download manually

BetterZipQL

Preview archives

Note: The BetterZipQL plugin was integrated with the BetterZip app.

Run brew install betterzip to install the BetterZip app and its Quick Look plugin or download manually

The legacy BetterZipQL plugin can be downloaded here.

qlImageSize

Display image size and resolution

Run brew install qlimagesize or download manually

Suspicious Package

Preview the contents of a standard Apple installer package

Run brew install suspicious-package or download manually

Apparency

Preview the contents of a macOS app

Run brew install apparency or download manually

QuickLookASE

Preview Adobe ASE Color Swatches generated with Adobe Photoshop, Adobe Illustrator, Adobe Color CC, Spectrum, COLOURlovers, Prisma, among many others.

Run brew install quicklookase or download manually

QLVideo

Preview most types of video files, as well as their thumbnails, cover art and metadata

Run brew install qlvideo or download manually

More

These are not included in Install all.

Peek 💰

Peek allows you to copy and find text, jump to line numbers, render Github-flavored Markdown with a generated table of contents, restore scroll positions, highlight syntax, & more in the Quick Look previews of over 300 file extensions.

Purchase on the Mac App Store

ProvisionQL

Preview iOS / macOS app and provision information

Run brew install provisionql or download manually

QuickLookAPK

Preview Android APK files

Run brew install quicklookapk or download manually

quicklook-pat

Preview Adobe Photoshop pattern files

Run brew install quicklook-pat or download manually

WebP

Preview WebP images

NOTE: This is already covered by qlImageSize, so this plugin is listed here only in case you do not like qlImageSize.

Run brew install webpquicklook or download manually

SourceCodeSyntaxHighlight

Preview many different source code files

Run brew install --cask --no-quarantine syntax-highlight or download manually

Note: This might overwrite some other Quick Look plugins.

License

CC0

To the extent possible under law, Sindre Sorhus has waived all copyright and related or neighboring rights to this work.