Make OS X's Quick Look work for custom file extensions

QLStephen adds support for both files without a filename extension (like README) and files with arbitrary extensions (like file.xyz).


Quick Installation using Homebrew:

brew install qlstephen

Manual Installation:

  • Download plugin
  • Unzip
  • Move file to ~/Library/QuickLook

(Don't forget to star the repo if this plugin helps you.)


You might also want to have a look at the QLColorCode and QLMarkdown plugins, for syntax highlighting of many languages and markdown rendering respectively.

http://code.google.com/p/qlcolorcode/

http://github.com/toland/qlmarkdown/

_c


A search for quicklook on github reveals that there is a large variety of extensions available:

  • iPhone / iPad / iPod Touch application icons quicklook-ipa
  • dot preview quicklook-dot
  • Display image dimensions in title bar qlImageSize
  • Viewing plain text file w/o extension QuicklookStephen
  • MultiMarkdown QuickLook Plugin
  • EPUB QuickLook generator and Spotlight importer
  • Lightroom .lrcat
  • Apple QuickLook Plugin for PPM, PGM, PFM and PBM files
  • CSV files
  • BetterZip overhaul
  • MATLAB .mat files
  • NFO files
  • Hazel rule for Auto-Quicklook
  • Sublime Text 2
  • Markdown as html
  • PhotoCD (coverflow) files
  • Autopano Pro files
  • WebP thumbnails and previews
  • Lytro's Light Field Picture files
  • PowerVR .pvr files
  • JSON files
  • Sony Mavica *.411
  • apparently custom QuickLook image suport
  • .hx files
  • FITS files
  • QuickCHM files
  • Adium Chatlogs
  • SQLite3
  • DDS files
  • markdown
  • .mdinfo files
  • sublime-snippet and tmSnippet
  • outdated zip
  • ePub cover pages
  • Haskell syntax highlighting
  • Drupal filetypes and more (module, profile, theme, install, inc)
  • Creating thumbnails via OS X QuickLook
  • r0ket .lcd files
  • audio files
  • PDB files
  • crippled iPhone png files
  • diffraction image data
  • FIT files from Garmin devices and such
  • PES Embroidery Files
  • FictionBook (fb2) e-book files
  • Markdown
  • Adium Chat Log
  • Windows BMP files
  • Go source files
  • Cocoa sqlite database files
  • source coloring
  • WebP image files
  • Netpbm files (.PBM, .PGM, .PPM, .PAM)
  • Dart source files
  • OSGi bundles
  • Agilent/Varian FDF formats
  • For files that are commonly found in structural biology
  • JSON, supporting fold/unfold sub-tress
  • iCloud CDT files: see deletes, inserts and updates
  • Markdown-Viewer, a viewer which provides QuickLook support as well,

and some (incomplete) collections:

  • QuickLook 1
  • QuickLook 2

It's possible, but not really easy.

If you look at /System/Library/QuickLook/Text.qlgenerator/Contents/Info.plist, you'll notice that the "text" preview is for the following UTIs:

public.plain-text
public.rtf
com.apple.rtfd
org.oasis-open.opendocument.text
com.apple.property-list
public.xml

This is how QuickLook knows which Plugin (qlgenerator) to use.


A (hackish) solution now would be to assign the extension properties the UTI public.plain-text. To do this, you could create a dummy application (e.g. created by Automator) that declares these file types like described here, only you'd use public.plain-text as UTI and properties as file extension.