Posts RSS Comments RSS 32 Posts and 1,017 Comments till now

QuickLook and TextMate

QuickLook in TextMate

This is a TextMate plug-in which allows you to QuickLook items in your project, either by selecting the item(s) you want to preview and using QuickLook from the context menu, or pressing ⌥␣ when the project drawer has focus.

Download QuickLook in TextMate here.

TextMate in QuickLook

This is a TextMate plug-in and a QuickLook generator which renders QuickLook previews (for certain filetypes) using the TextMate syntax highlighter. Currently it’s configured to highlight Perl, PHP, Ruby, Shell, C headers and Obj-C(++). Note: this effectively sets up TextMate as a server for the syntax highlighting, so it won’t work unless TM is running (QuickLook will just fall back to the standard preview if it’s not).

Download TextMate in QuickLook here.

The QuickLook generator will be automatically installed by the plug-in the first time it loads. Hopefully QuickLook will notice and start using it right away, but if it doesn’t you can try running qlmanage -m

Needless to say, both these plug-ins are Leopard only.

105 Responses to “QuickLook and TextMate”

  1. on 16 Nov 2007 at 3:27 amJim Lindley

    Hello Ciarán, thank you for all your tips and hard work!

    It seems like the links to the files might be wrong?

  2. on 16 Nov 2007 at 4:19 amCiarán

    Gah, I did a global replace to correct Quicklook to QuickLook but forgot about the filenames! I’ve fixed them now, thanks for pointing that out.

  3. on 16 Nov 2007 at 4:40 amThomas Aylott

    DUDE! That is just Sick!

    Thanks!

  4. on 16 Nov 2007 at 5:46 ammeekish

    Just wanted to say thanks!

  5. on 16 Nov 2007 at 6:28 amJim Lindley

    Thank you!

  6. on 16 Nov 2007 at 11:32 amgiandal

    Great! Next: Tex, Latex, please!

  7. on 16 Nov 2007 at 12:02 pmMartin Ström

    Thanks!

  8. on 16 Nov 2007 at 5:38 pmDevon

    Thanks. I am finding TextMate in QuickLook to be really useful.

    To add more file types, can I just edit the info.plist file inside the package? I’d like to add support for javascript and SQL files, for example.

  9. on 16 Nov 2007 at 5:55 pmCiarán

    To add more filetypes you’ll need to edit /Library/QuickLook/TMQuicklook.qlgenerator/Contents/Info.plist
    Duplicate the line that says <string>public.perl-script</string> and change public.perl-script to the UTI for the document you want to use.

    @giandal: On my system I found that (La)TeX files already have a UTI of org.tux.tex, so you might be able to just add that as specified above. If that doesn’t work then following this hint should set it up.

    @Devon: Adding one for com.netscape.javascript-source should set it up to handle Javascript files – there is no standard UTI for SQL however you could use the same hint linked above to give it one if you were so inclined.

  10. on 16 Nov 2007 at 11:59 pmgiandal

    Now tex files are correctly previewed in textmate (although it displays the full file and if it is long it’s unreadable, the font is extremely small), but still no colors in the finder preview…

  11. on 17 Nov 2007 at 4:22 amWayne E. Seguin

    This is one of the best plugins I’ve ever used. Thank you very much Ciarán.

  12. on 17 Nov 2007 at 6:05 amCiarán

    @giandal: You can use ⌘+ to zoom QuickLook previews (or scroll + size the window manually). I’m not really certain how the QuickLook generators are cached, hopefully you’ll start seeing it in Finder soon too – if not then you can try running qlmanage -p in Terminal, or restart Finder.

  13. on 17 Nov 2007 at 7:37 amgiandal

    @Ciaran: thanks! Now it works. It needed to clear the cash. And thanks for the tip on QuickLook. Everyday I learn some new feature that makes me love Leopard!

  14. on 19 Nov 2007 at 4:58 pmDevon

    Adding

    com.netscape.javascript-source

    worked for highlighting the javascript source. Thanks!

    I did have to reboot as qlmanage -m didn’t seem to do the trick.

  15. [...] Don’t quote us, but this could be (one of) the first in-app Quick Look plug-ins for Leopard. [...]

  16. [...] TextMate – Preview mit dem TextMate Syntax Highlighter [...]

  17. [...] TextMate to be running to generate Quick Looks (also enable QLs inside the TextMate programme). Download here from Ciarán Walsh’s [...]

  18. on 27 Nov 2007 at 8:22 pmStefan

    About the highlighting for TeX-Files: “Quicklooking” in plain text works fine for me using the trick over at macosxhints, but how do I get the highlighted syntax?

  19. on 27 Nov 2007 at 8:28 pmcharles

    The command to use should probably be ‘qlmanage -r’ to reset the QuickLook server (the -m option is to list the currently active generators).

  20. on 27 Nov 2007 at 8:49 pmcharles

    OK, never mind, qlmanage -r does not work. The only reproducible way seems to be killall Finder. But it also seems the Finder does check often, and loads or unloads plugins after a few seconds. I guess this is all thanks to being able to unload plugins, a new Leopard feature.

  21. on 27 Nov 2007 at 9:24 pmcharles

    The QuickLook plugin is great! The only problem I have is like one of the commenters, say, it does not do any wrapping at all and things get extremely small for some documents where I have for instance long comments, which I guess is QuickLook’s fault, but I wonder if there is any way to have some reasonable wrapping done.

  22. on 27 Nov 2007 at 9:45 pmMarkPS

    Thanks for making the QuickLook plugin! TextMate is pretty much always running on my Mac and the syntax highlighting in QL is great.

  23. on 28 Nov 2007 at 10:58 amalex

    “qlmanage -m” will only reload the plugins, but as quicklook seems to cache stuff, you have to restart the Finder. You can do that easily by right-clicking on the Finder in the dock while the alt/option key is pressed. Then you’ll see a restart option in the popup menu.

  24. [...] As a heavy TextMate user I’m very happy about the two awesome TextMate-plugins that can be found at Ciarán Walsh’s Blog – QuickLook and TextMate: [...]

  25. [...] Textmate Files [...]

  26. [...] Ciaran Walsh has released two textmate quicklook plug-ins that will highlight Perl, PHP, Ruby, Shell, C headers and Obj-C(++) Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  27. on 29 Nov 2007 at 1:42 amgreg.newman

    Thanks for this. I was just thinking how nice a plugin like this would be yesterday.

  28. [...] Quicklook with Plugins Personally I like the Zip and TextMate extensions, but there’s more (or build your [...]

  29. on 29 Nov 2007 at 7:11 pmMithras

    Thanks for this, it’s truly wonderful.

    One nit: It would be nice if it sized to a reasonable font point by default, rather than sizing “to fit” the entire document onscreen, which makes for very skinny, unreadable long documents, and very wide, unwieldy short ones. :)

  30. on 29 Nov 2007 at 9:59 pmCiarán

    Mithras: the document is always rendered using your TextMate font settings, what you are seeing is QuickLook trying to scale the output intelligently – you can zoom/out when this doesn’t work well. I would imagine there is something I can do to control the behaviour a bit better but I’ve not looked into it yet (it’s made trickier because I am not doing the rendering).

  31. on 30 Nov 2007 at 1:19 amPlugins variados para QuickLook

    [...] QuickLook Plugin TextMate – Visualiza ficheros con el formato que utiliza TextMate para resaltar las diferentes partes de código. [...]

  32. [...] QuickLook in TextMate, Textmate in Quicklook – [...]

  33. on 03 Dec 2007 at 7:25 pmAlexander Klimetschek

    How do I add a file type that doesn’t have an UTI yet (jsp for example)? I don’t see a way to manually register a UTI in MacOSX, at least without programming. I am using RCDefaultApp, which is very helpful for that kind of stuff, but it only shows UTIs and lets you choose which program should handle which UTI.

    It would be cool to have a GUI for the filetype-to-textmate quicklook plugin mapping, maybe one could write a system pref pane for that? Choose based on UTIs and also based on extensions or globs (ie. *.jsp), if that is possible with the Quicklook framework.

    Thanks for that great plugin! Quicklook is so helpful.

  34. on 04 Dec 2007 at 10:02 pmNeil

    Maybe I’m completely silly (probably) but I’m not quite sure what key to hit to trigger QuickLook – option and ???

  35. on 05 Dec 2007 at 12:40 amTextMate

    [...] More information  [...]

  36. on 05 Dec 2007 at 1:11 amCiarán

    Alexander: I gave a link to a Mac OS X Hint above which might help – whatever you do won’t be a real solution though, and I likely won’t be implementing anything properly until TextMate itself has something in place for this.

    Neil: Option-Space – you can hover over any of the keyboard shortcuts in my blog (they should be underlined) to get a tooltip with the English name.

  37. on 18 Dec 2007 at 6:20 amBP

    It appears that this only works if you are using an admin account (which, is not a good idea for security). Running as a normal user (first I extrected the quicklook plugin from the bundle and put it into ~/Library/QuickLook), I get the following to the console:

    12/17/07 9:17:40 PM TextMate[305] Installing QuickLook generator 12/17/07 9:17:40 PM TextMate[305] QuickLook generator installation failed

    Then, it doesn’t work. Probably a bad idea to assume /Library for what you are doing.

  38. on 18 Dec 2007 at 1:39 pmbisley

    Is there anyway to include .nfo files? nfo are like plain-text.

  39. on 18 Dec 2007 at 2:08 pmÉdouard

    Option-space is actually a character — non-breakable space. I’m not against mapping it to a command which is related (I mapped it to ~ in LaTeX, for example, it’s very convenient and natural), but I would personally avoid it for other purposes by default.

  40. on 18 Dec 2007 at 7:35 pmCiarán

    BP: Good point, I’ll change it to install to ~/Library

    bisley: .nfo files have no UTI, but check the hint link mentioned above for how you can set it up.

    Édouard: note that it says “when the project drawer has focus” – it doesn’t override Option-Space inside the document view. You can use e.g. ⌥⌘⇥ to switch to the project drawer.

  41. on 19 Dec 2007 at 2:12 pmTorgeir

    Just thought i’d check out this plugin.. however, quicklooking a phpfile i get a somewhat fishy result, each line only has One letter (i.e) <?php uses 5 lines.. Any suggestions?

  42. on 19 Dec 2007 at 5:48 pmÉdouard

    Oh, I didn’t see this. And, as I was unable to make QL in TM work, I thought that was the problem.

    Actually, I can’t have the shortcut work on some file types (I haven’t really looked really deeply). When I try to QuickLook a css file, it works perfectly, but when I try to do it on a PHP file, it actually insert “ ” in the file itself. I don’t know exactly what happen, but I would guess the PHP plug-in handles the shortcut before your own.

  43. on 20 Dec 2007 at 12:15 amCiarán

    Torgeir: Not too sure what you’re describing, could you send me a screenshot and (if possible) the source file?

    Édouard: Most likely you don’t have the project drawer focused when you are invoking it. The selection box must be dark blue (not grey). You can always use the context-menu option to invoke QuickLook (right/control-click the file you want to view).

  44. on 30 Dec 2007 at 11:50 amPeeter

    Add public.python-script for Python.

    For a list of system-defined UTIs, see:

    http://developer.apple.com/documentation/Carbon/Conceptual/understandingutis/utilist/chapter4section1.html#//apple_ref/doc/uid/TP40001319-CH205-CHDIJFGJ

    Ciarán: Still seems to need admin access to install the qlgenerator… When I pulled it manually from the tmplugin to ~/Library/QuickLook it worked though.

  45. on 02 Jan 2008 at 4:08 amPeter Jaros

    Ciarán: This is excellent. I’m having the same problem Peeter is, though: without admin access, the plugin does nothing, so I have to install it manually. It probably belongs in the user domain anyhow, since the plugin is installed there.

    Does the plugin copy the qlgenerator or just link to it? Linking worked when I did it manually, and it’ll make upgrading easy.

    I’d suggest adding a preference pane to TextMate to add new UTIs to open. If you’re looking for more to do. :)

    Thanks for another great pair of plugins.

  46. on 04 Jan 2008 at 8:10 pmGandalf

    I’m sorry, but I tried what you said to do for tex files. The funny thing is that there is one tex file on my computer for which quicklook now works. It doesn’t highlight the code even when TextMate is open, and no other tex files will work either, so that’s the really weird thing. I tried restarting Finder and even logging out and back in again.

  47. on 04 Jan 2008 at 8:48 pmGandalf

    Okay, so I downloaded the utconvert thing that’s on TextMate’s website, and ran it and it works now. I can see .tex files and everything else, but it doesn’t do any syntax highlighting whether TextMate is open or not.

  48. [...] TextMate. TextMate is the editor that geeks everywhere love (including the geeks at TUAW). Ciarán Walsh has written two Quick Look plug-ins for TextMate that let you preview items in a project or render Quick Look previews (for certain file types) [...]

  49. [...] TextMate. TextMate is the editor that geeks everywhere love (including the geeks at TUAW). Ciarán Walsh has written two Quick Look plug-ins for TextMate that let you preview items in a project or render Quick Look previews (for certain file types) [...]

  50. [...] TextMate. TextMate is the editor that geeks everywhere love (including the geeks at TUAW). Ciarán Walsh has written two Quick Look plug-ins for TextMate that let you preview items in a project or render Quick Look previews (for certain file types) [...]

  51. [...] TextMate. TextMate is the editor that geeks everywhere love (including the geeks at TUAW). Ciarán Walsh has written two Quick Look plug-ins for TextMate that let you preview items in a project or render Quick Look previews (for certain file types) [...]

  52. on 07 Jan 2008 at 6:54 pmEric

    Thank you for the plug-in. One question though, while I can get quicklook to come up via the contextual menu when I am in Textmate, I think the key combo is not working. I am sure the project window and shelf have focus… is the key combo opt-space?

    Thanks

  53. [...] TextMate. TextMate is the editor that geeks everywhere love (including the geeks at TUAW). Ciarán Walsh has written two Quick Look plug-ins for TextMate that let you preview items in a project or render Quick Look previews (for certain file types) [...]

  54. on 21 Jan 2008 at 3:39 pmjonas

    TextMate gets unresponsive and then crashes when quicklooking at larger files (400kb, for example). is there anything that can be done about it?

    meanwhile, i’ve removed the plugin.

  55. on 23 Jan 2008 at 1:26 amAnton

    This is nice, but I don’t want textmate to be running all the time. How do I uninstall the “TextMate in QuickLook”-plug-in? Thanks in advance!

  56. on 23 Jan 2008 at 4:04 pmzhou

    hi, i have got a problem with ql the file in TM by using alt+space because of a coflict with an overall shortcut. would sbd help me to solve it? thx a lot

  57. on 23 Jan 2008 at 4:31 pmzhou

    btw. i would like to have a short cut alt+f

  58. on 30 Jan 2008 at 10:49 pmJared

    I’m having the same issue as Anton, I can’t seem to make the uninstall ‘stick’ … every time I take it out, it reinstalls itself.

  59. [...] HetimaClipping – txt‑ und pict-Clippings aus der Zwischenablage anschauen Textmate Quicklook-Plugin – Für TextMate-Dateien eben QLEnscript – Für C++, PHP, Shell, Perl, [...]

  60. on 22 Feb 2008 at 12:13 pmQuickLook-Plugins

    [...] TextMate – TextMate Syntax Highlighter [...]

  61. on 19 Mar 2008 at 4:35 pmRikki

    Thanks for these plugins, they’ll both make my life much easier!

  62. on 27 Mar 2008 at 12:00 amChris

    For some reason, the preview often includes a large white page alongside the TextMate code:

    http://mt13.quickshareit.com/share/picture1bda0e.png

  63. [...] Languages. Ну, а для любителей TextMate еще и отдельно идем сюда и знакомимся с еще более навороченным [...]

  64. on 16 Apr 2008 at 7:06 pmPaul

    This is very cool, congrats for a great accomplishment and a great contribution to the TextMate community. Allan should give you free upgrades for life ;)

    Meanwhile, a great addition would be a Quicklook for TextMate projects (.tmproj files) that gives you a preview of the project drawer and what files are in it.

  65. on 21 Apr 2008 at 6:32 pmorchid

    This is very cool! I wonder to know how could you launch QuickLook inside TextMate? I haven’t found any opened APIs to do this?

    Did you use qlmanager to achieve it?

  66. on 22 Apr 2008 at 1:38 pmCiarán

    orchid: see my post on the subject

  67. [...] Languages) качати тут. Ну а для кодерів-богів (TextMate) пройти сюди. 4. Перегляд вмісту каталогів: Плагін платний, тому [...]

  68. [...] Textmate – download [...]

  69. [...] QuickLook and TextMate [...]

  70. [...] vous êtes un adepte de TextMate, vous pouvez utiliser ceci comme alternative. Ce plugin utilise TextMate pour la colorisation syntaxique, ce qui veut dire que [...]

  71. on 29 Sep 2008 at 7:59 pmJohan Boström

    Excellent, many thanks Ciarán!

  72. on 22 Oct 2008 at 4:00 pmRembert

    Textmate with TM Quicklook plugin crashes when icon view is enabled and one does click on a large PHP file for instance.

    Tried to remove the plugin by deleting TMQuicklook.qlgenerator from /Applications/QuickLook and then runinng either qlmanage -r or qlmanage -m, even with relaunching Finder. Each time I restart TextLook, the plugin reappears.

    I have no clue how to get rid of this plugin as the gains don’t outweigh the troubles.

  73. on 04 Nov 2008 at 12:02 amvigo

    un-install / remove works like this;

    1.delete plugin ( /Library/ or ~/Library ) and make MOVE TO TRASH 2.open terminal; 3.qlmanage -p /any/php_file.php

    you even make “qlmanage -r” to make sure …

    worked for PHP

  74. [...] TextMate (File-file coding seperti *.php, html) Aplikasi TextMate harus dalam keadaan berjalan) [...]

  75. on 15 Dec 2008 at 6:31 pmTextMate Reborn :: dirtystylus

    [...] I’m glad I did – although to enable QuickLook in the project drawer I ended up installing the QuickLook in TextMate plugin. The ProjectPlus feature list seemed to imply that this was included, but it didn’t seem to [...]

  76. on 02 Jan 2009 at 3:18 pmTuk

    Hi,

    thanks for the great plugins.

    I have one problem though. When TMQuickLook is installed QuickLook stops working when TextMate isn’t running. It just displays the file icon as if no QuickLook plugin was installed for the file type in question. And write error messages like this to the system log:

    02/01/09 15.14.03 Finder[123] Some pages of this PDF are corrupt and will be ignored.
    

    I am using QLColorCode and it works perfectly when I delete TMQuickLook.

    I would like to be able to use TMQuickLook though :-) .

    Regards, Tuk

  77. on 15 Jan 2009 at 4:37 amBrusdeylins » Quick Look überall

    [...] lassen einem seinen Mac gleich viel mehr Dateiformate verstehen. So existiert bereits eine QuickLook-TextMate Verschmelzung, um Programmcode mit dem Syntax Highlighting von TextMate zu betrachten und ein [...]

  78. [...] Textmate – télécharger [...]

  79. on 08 Mar 2009 at 12:21 pmLu

    Im my case, it took about 30 seconds to ‘quickview’ a big php file (10.000 lines). For small files the plugin works much quicker. Thanks.

  80. on 18 Apr 2009 at 10:01 amAndrew

    I just ran into this script and I thank the author for their effort but it has caused instability for my Finder and for my TextMate on a fresh install. I use textmate extensively for editing rather large PHP-based codebases, and ever since enabling these plugins, it takes sometimes 10-20 seconds to load a simple file with no significant other load on my computer. In addition, sometimes with textmate fully functioning the finder preview (as reported above) takes up to 30 seconds or so, and has caused my finder to beach ball for a seemingly infinite time a few times. I ended up force quitting the finder twice after a few minutes of beachball. Maybe it needs a little tweaking, or maybe with the latest TextMate/OS-X (Using 10.5.6) there are some incompatibilities?

  81. on 18 Apr 2009 at 10:02 amAndrew

    And I forgot to mention that I’ve used TextMate for over a year without textmate crashing, and since enabling this plugin a week ago I’ve had textmate crash on me 5 or 6 times. :(

  82. [...] Y si como yo utilizas TextMate, tienes disponible dos plugins diferentes para Quicklook. Con uno podrás ver el contenido de cualquier documento (formateado con colores) hecho con TextMate. El segundo te ofrecerá la posibilidad de previsualizar también los archivos de proyecto creados con esa aplicación. Tanto ColorCode como el de TextMate te ahorrarán muchísimo tiempo a la hora de comprobar el código de tal o cual archivo. Información y Descarga. [...]

  83. on 04 Aug 2009 at 2:33 pmErik Hansen

    Ciarian, thanks for another helpful plugin! Is there any to enable SQL support?

  84. on 15 Aug 2009 at 6:13 amTwitted by delicious50

    [...] This post was Twitted by delicious50 [...]

  85. [...] TextMate [...]

  86. on 17 Sep 2009 at 7:33 pmDru Kepple

    I understand that I can zoom the view, and scale the window, but ideally the plugin would just start you off at a readable scale and let you scroll through the document. Is there any way to force a quick look window to open at a certain width? I’ve noticed that when I have a QL preview open, and then browse through available files without closing the QL window, it retains its width and therefore everything looks pretty good. I understand that that’s how the QL window works, but I’ve noticed that audio previews, when launched a-fresh, have a standard width and height. There must be some way to specify the width of a new window. Perhaps this could get around the zoom issue? You know, if there was a “sweet spot” width value that new QL windows could use when using this plugin?

    That aside, thanks for this…you don’t realize how helpful color highlighting is until you’re forced to look at your code in plain text.

  87. on 19 Sep 2009 at 12:14 amDru Kepple

    Also…I use Quicksilver, which seems to have Opt-Space permanently mapped to invoking QS with the “Action” field highlighted (never knew that until I tried to use Opt-Space to invoke QL from TM). Does anyone know how to change that keystroke in QuickSilver? Or possibly in this plugin? It’s pretty cool to have QL in TM, but I think not having to quit QS is even cooler.

  88. on 21 Sep 2009 at 2:51 pmPreview code in Quicklook – Inlet

    [...] handles the syntax highliting of your file extension. Now you have TextMate installed, download the TextMate Quicklook generator. By default this generator includes only some default programming languages like php,C++ and so [...]

  89. on 24 Sep 2009 at 11:12 pmmanchicken

    This worked for me as well, but I had to add the following lines to the Info.plist:

    dyn.ah62d4rv4ge80g3xr dyn.ah62d4rv4ge80g3xd

    If you do qlmanager -d 4 -p FILENAME then you’ll see the UTI string pop out in the debug info.

  90. [...] Textmate [...]

  91. [...] QuickLook and TextMateQuickLook and TextMate [...]

  92. on 23 Nov 2009 at 6:26 pmGustav

    Hi,

    I’m new to Textmate, and have been trying to install these plugins without success. Here’s what I did. I downloaded the two files, clicked on them from my downloads folder, and they were both automatically moved to ~/Library/Application Support/TextMate/. I relaunched TextMate, but I can’t find a QuickLook option when right-clicking on the project pane. Also, there appears to be no .qlgenerator file corresponding to this plugin.

    Thanks a lot.

    GL

  93. on 23 Nov 2009 at 6:30 pmGustav

    PS: I also tried rebooting, but it did not help. I get the sense that I’m missing some basic step, but I can’t tell what it is.

  94. on 23 Nov 2009 at 6:31 pmGustav

    PS 2: I’m running OS X 10.6.1, and TextMate 1.5.9.

  95. on 01 Mar 2010 at 3:59 amfhfgh

    This free PDF Converter is the most powerful PDF converting tool to convert PDF files to all popular file formats. Adopting professional technology, all elements in PDF files can be perfectly preserved to the output files. And comprehensive file formats are supported. AVCHD Converter Mac is a professional but easy AVCHD Converter for Mac OS users which can perfectly and quickly convert AVCHD (*.MTS, *.M2TS) videos to all popular format files. Almost all video and audio formats are perfectly supported by QuickTime Converter Mac and it allows you to adjust the video and audio encoding settings to get output videos suitable for various portable players.

  96. on 16 Mar 2010 at 7:14 pmLuis

    Let me start by saying that these are great plugins. But I didn’t like the fact that I have to have TM running for it to work. I was using another plugin to QL source files and now this plugin has taken over. I don’t know if it is a thing of order in which the plugins are loaded or what, but I would like for my other plugin to work.

    So my questions are these: Is there a way to control which plugin has control of which files when you have multiple plugins trying to preview that type of file? Or is there proper way to edit the plist file for TM plugin to exclude lets say php and ruby files? Is there a way to completely remove the TM plugins and if so could I please get instructions on how to do?

    Any help on this will be greatly appreciated.

    Thanks in advance.

  97. on 16 Mar 2010 at 9:41 pmLuis

    I figured out how to remove the plugins so the TMQuicklook.generator file is not automatically added to the QuickLook folder every time that TextMate is launched.

    Go to /Library/Application Support/Text Mate/Plugins or ~/Library/Application Support/Text Mate/Plugins and delete the plugins TMQuickLook.tmplugin and QuickLookTM.tmplugin.

    Then from terminal run: qlmanage -r

    Although, this is an acceptable solution for me, I would still like to know if there is a way to control which plugin is used or to selectively associate files. For example, I would to use the TMQuickLook plugin when TextMate is running and use QLColorCode when it is not.

    It might just be too much to ask for.

  98. on 12 Apr 2010 at 10:09 amtravel

    Great post.

  99. on 12 Apr 2010 at 10:10 amlerry

    Good post :) travel

  100. on 21 Apr 2010 at 1:46 amwangwei

    Thank you so much for this post, it was very insightful! I have found a direct conversion software,

    Blu-ray Ripper helps you Directly rip Blu-Ray to almost all of the popular video and audio formats with high quality and converting speed.

    ————————————

    More info you can visit: http://besthdsoft.com/best-hd-blu-ray-ripper.html

  101. on 22 Apr 2010 at 2:48 pmAcai Berry

    This is one of the best posts that I’ve ever seen; you may include some more ideas in the same theme. I’m still waiting for some interesting thoughts from your side in your next post. Teeth Whitening|Teeth Whitening|Teeth Whitening Products

  102. on 27 Apr 2010 at 5:12 am招聘销售

    This is one of the best posts that I’ve ever seen; you may include some more ideas in the same theme. I’m still waiting for som

  103. on 05 Jun 2010 at 5:23 pmMichael

    I would NOT install this plugin, as so far I’ve found no means for uninstalling it. Manually removing it doesn’t work. It reloads itself every time you open TextMate and the QuickLook Daemon refreshes. How do you get rid of it? My system does not default to plain text quicklook as your article states.

  104. on 17 Jun 2010 at 2:41 amDTrejo

    http://grab.by/4Z2M

    Seems like something went wrong.

  105. on 04 Jul 2010 at 4:44 amMichael

    Ok, I figured out how to uninstall. You have to delete the plugin from both /Library/Quicklook/ and ~/Library/Application Support/Textmate/Plugins

Fork me on GitHub