[TxMt] Re: TM's QuickLook plugin

Rob McBroom mailinglist0 at skurfer.com
Sun May 31 20:52:47 UTC 2020


On 31 May 2020, at 12:39, Curt Sellmer wrote:

> I was not aware of the qlmanage utility until I saw this email....
>
> I am running MacOS 10.14.6 (Mojave) and when I use QuickLook to view a
> source file such as Foo.scala I just get the generic QuickLook window
> describing the file.
>
> But if I use this command:  qlmanage -p -c public.source-code U.scala
>
> Then I get the correct QuickLook window that uses the TextMate theme.
>
> It seems that the Finder is not associating the "public.source-code" 
> type
> with the file.  However I have told Finder to open all .scala files 
> with
> TextMate and indeed it is listed as the default App for opening the 
> files.
> Not sure if there is something else that must be done so that Finder 
> knows
> that this is a source code file?

You can always see what UTIs the system thinks a file has by running

     mdls -name kMDItemContentTypeTree filename.xyz

I forget what (if any) influence installed apps have on the list, but 
that’s almost certainly what Finder is using.

-- 
Rob McBroom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20200531/d7deb70e/attachment.html>


More information about the TextMate mailing list