Add .litcoffee extension #19

Open
thiloplanz opened this Issue Mar 24, 2013 · 3 comments

Projects

None yet

3 participants

Coffeescript has a "Literate Programming" mode that is based on Markdown.

http://coffeescript.org/#literate

It uses the extension .litcoffee. Would be nice if this plugin could support that, too.

Is there a way for me to manually add this somehow?

Collaborator
tarwich commented May 8, 2014

If you're still out there, you could try adding <string>litcoffee</string> to info.plist

diff --git a/Info.plist b/Info.plist
index 57b766f..ebf3f92 100644
--- a/Info.plist
+++ b/Info.plist
@@ -88,6 +88,7 @@
                    <string>mdwn</string>
                    <string>mkd</string>
                    <string>mmd</string>
+                   <string>litcoffee</string>
                </array>
            </dict>
        </dict>

If this works, and you like the result, then we could consider making it "official".

tjwoon commented Dec 5, 2014

I added <string>litcoffee</string> to the Info.plist, rebuilt, Archived, exported the Built files, and pasted it into my ~/Library/QuickLook directory (replacing the old version). After running qlmanage -r, my .litcoffee files still do not render.

Is there any log I can view? Perhaps there is an error rendering the .litcoffee files?

tjwoon commented Dec 5, 2014

Testing using the qlmanage command directly gives me a standard quicklook preview (generic icon, filename, etc), and the following logs:

TJMacBookPro:qlmd tj$ qlmanage -p /tmp/qlmd/test.litcoffee 
Testing Quick Look preview with files:
    /tmp/qlmd/test.litcoffee
[ERROR] LSCopyDefaultApplicationURLForURL for file:///tmp/qlmd/test.litcoffee returned error The operation couldn’t be completed. (OSStatus error -10814.)
2014-12-05 11:53:05.432 qlmanage[44059:1734381] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9f43, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-12-05 11:53:05.440 qlmanage[44059:1734381] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x451b, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-12-05 11:53:05.440 qlmanage[44059:1734381] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
2014-12-05 11:53:05.446 qlmanage[44059:1734381] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa267, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment