> On 30 Apr 15, at 06:40, Goldweb <[email protected]> wrote:
> 
> I use a shell script and strategically located folders:
> 
> https://GitHub.com/AlexSatrapa/ZSH-Environment/blob/master/BBEdit_Utils
> 
> Check the "newnote" function.
> 
> Now I just need a Markdown importer for Spotlight ;)
> 
As a side note: 

You already have a Markdown importer. Since Markdown is plaintext it is 
sufficient to add the Markdown UTI to the system’s text mdimporter, which is 
`/System/Library/Spotlight/RichText.mdimporter`.

Open the bundle and add the Markdown UTI string to the `LSItemContentTypes` 
array in info.plist. (On my system it is `net.daringfireball.markdown`, but 
this may vary; you can get the actual UTI by running `mdls` on a .md, .mmd or 
.markdown file, or whatever extension you use.)

Reimport afterwards with `mdimport -r 
/System/Library/Spotlight/RichText.mdimporter`.

-- 
Tom



-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to