5

Is there a way to tell OS X to use the quicklook text viewer for files with specific extensions?

For example, I use emacs org-mode for tasks lists, etc. Usually I view (and edit) these in emacs, however sometimes I browse in Finder and want to know the contents of an org file.

Similarly, this would be helpful for .conf files.

I know that I could search for custom QuickLook plugins (or create one) but it'd be easier and good enough just to use the simple text viewer.

1
  • I installed QLStephen, which did successfully allow me to QuickLook my .org files. But it caused other problems. Feb 25, 2016 at 23:06

2 Answers 2

-1

Based on the sample UTImportedTypeDeclarations from qlcolorcode, I use this entry:

    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.source-code</string>
        </array>
        <key>UTTypeDescription</key>
        <string>Org-mode Text</string>
        <key>UTTypeIdentifier</key>
        <string>org.emacs.org-mode</string>
        <key>UTTypeReferenceURL</key>
        <string>http://orgmode.org/</string>
        <key>UTTypeTagSpecification</key>
        <dict>
            <key>public.filename-extension</key>
            <array>
                <string>org</string>
            </array>
        </dict>
    </dict>

Don't forget to run 'sudo qlmanage -r' from the Terminal(or relogin) to pick up the changes.

2
  • Worked, but I also had to touch /Applications/TextEdit.app Dec 7, 2010 at 14:48
  • 1
    Where am I supposed to put this code? Jul 31, 2015 at 23:15
2

You should be able to apply these instructions to adding the extension to TextEdit (rather than TexShop) to get what you want.

Good luck!

1
  • 1
    Tried this, didn't take. Mar 2, 2010 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .