MMD-QuickLook
MMD-QuickLook copied to clipboard
Can't seem to get mmd qlgenerator working in Lion
I must be missing something! I installed the multimarkdown quick look folder in the /Library/QuickLook/ folder. It didn't seem to work right off the bat, so I added the .qlgenerator extension, but still no dice. what am I doing wrong?
Thanks! MMD is cool, Fletcher! Can't believe you give all this stuff away! I was glad to finally have a chance to buy an app from you, so I'm also a happy MultiMarkDown Composer user too!
The zip file you downloaded should have already had that extension when you downloaded it.
What file extensions are you using on the files you want to preview?
PS> Thanks for buying Composer, and glad you like it. 1.0.1 should be released any moment now - not sure why it's taking Apple so long to review this time.
I've tried both .md and .markdown, and those are at least showing as plain text (unformatted), and I just tried mmd, which keeps the Composer file association, but doesn't preview the plain text.
Did you log out and log back in? Anything in the Console? Any other quicklook generators that could be interfering?
I tried rebooting, and still no luck. Checked the Console and found:
quicklookd: [QL] file://localhost/Library/QuickLook/MultiMarkdown%20QuickLook.qlgenerator/ has no identifier: ignoring
I'm wondering if it has something to do with the UTTypeIdentifier in the .plist?
I found a similar error in this thread on the quicklook-dev list: http://osdir.com/ml/quicklook-dev/2010-06/msg00007.html
I'm out of my depth, but it looked like the only UTTypeIdentifier in the .plist for mmd qlgenerator referred to .opml - not .md or .markdown?
I'll have to look at this again at some point in the future, but unfortunately it's a really low priority for me at the moment.
OPML is treated separately, so it's kept separately in the plist.
I've seen a lot of strange bugs with Lion -- this could certainly still be a problem on my end, but Lion doesn't seem fully baked from what i'm hearing from users.
I have no problems with the Quicklook plugin, so I also have to consider whether there is something wrong on your machine in particular.
If anyone finds changes that need to be pulled into the main source, I'm happy to change it, but unfortunately I don't have time to chase down a bug I can't reproduce at the moment.
Okay, turns out I'm a moron. I downloaded the source, not the precompiled binary generator. Of course, when I installed that in the ~/Library/QuickLook/ folder, it works just fine. Sorry to waste your time, Fletcher!
No worries. Glad you figured it out.
I have the same problem, and the file I downloaded was named MultiMarkdown QuickLook.qlgenerator so I assume it is indeed the precompiled binary (2011-12-18).
There is nothing in the file Info.plist inside MultiMarkdown QuickLook.qlgenerator where it claims to be capable of previewing the usual markdown extensions: md, mdown, markdown, etc. It only has the list of the usual UTIs. I guess that unless some other software is telling the OS that those extensions correspond to the UTIs that MMD-Quicklook claims to be able to preview, Quicklook will not ask MMD-Quicklook to preview them.
I did get qlmanage
to render a file with .md extension forcing the content type, as expected:
qlmanage -c net.daringfireball.markdown -p document.md
QLMarkdown explicitly claimed extensions and thus worked out of the box (on the OS versions it did work):
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Markdown document</string>
<key>UTTypeIconFile</key>
<string>public.text.icns</string>
<key>UTTypeIdentifier</key>
<string>net.daringfireball.markdown</string>
<key>UTTypeReferenceURL</key>
<string>http://daringfireball.net/projects/markdown/</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>markdown</string>
<string>mdown</string>
<string>md</string>
<string>mdml</string>
<string>text</string>
<string>mdwn</string>
</array>
</dict>
</dict>
</array>
I confirm elmimmo: Invocationt via qlmanage works, but Quicklook will not automatically preview an .md-file. System is latest Snow Leopard. File Type is set to open with Textmate 2.
I'll have to go back and look at the xcode project settings when I get a change and see what's going on.
Same issue as ghost and elmimmo on 10.7.2 - suggest this issue be reopened.
Will look into further after rewriting UTIs for MultiMarkdown Composer.
It might be that having Composer installed on my system makes the QL plugin work better...
Fixed it in https://github.com/elmimmo/MMD-QuickLook/tree/filename-extensions but I am new to git and do not understand how to send a pull request of only this particular feature.
I can update manually if there's an issue with pull requests - I want to revisit the whole UTI thing anyway, but haven't had a chance yet.
Thanks for doing this.
F-
@elmimmo do you happen to have a binary of your fixed version of MMD-QuickLook available for download somewhere?