MMD-QuickLook icon indicating copy to clipboard operation
MMD-QuickLook copied to clipboard

Can't seem to get mmd qlgenerator working in Lion

Open edglazer opened this issue 13 years ago • 17 comments

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!

edglazer avatar Oct 31 '11 22:10 edglazer

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?

fletcher avatar Oct 31 '11 22:10 fletcher

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.

fletcher avatar Oct 31 '11 22:10 fletcher

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.

edglazer avatar Oct 31 '11 23:10 edglazer

Did you log out and log back in? Anything in the Console? Any other quicklook generators that could be interfering?

fletcher avatar Nov 01 '11 00:11 fletcher

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

edglazer avatar Nov 01 '11 14:11 edglazer

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?

edglazer avatar Nov 01 '11 15:11 edglazer

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.

fletcher avatar Nov 01 '11 18:11 fletcher

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!

edglazer avatar Nov 01 '11 20:11 edglazer

No worries. Glad you figured it out.

fletcher avatar Nov 01 '11 20:11 fletcher

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>

elmimmo avatar Dec 18 '11 22:12 elmimmo

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.

ghost avatar Dec 20 '11 09:12 ghost

I'll have to go back and look at the xcode project settings when I get a change and see what's going on.

fletcher avatar Dec 20 '11 15:12 fletcher

Same issue as ghost and elmimmo on 10.7.2 - suggest this issue be reopened.

evandavey avatar Jan 14 '12 09:01 evandavey

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...

fletcher avatar Mar 09 '12 16:03 fletcher

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.

elmimmo avatar Apr 04 '12 06:04 elmimmo

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-

fletcher avatar Apr 04 '12 11:04 fletcher

@elmimmo do you happen to have a binary of your fixed version of MMD-QuickLook available for download somewhere?

felciano avatar Dec 29 '18 23:12 felciano