whomwah / qlstephen

A QuickLook plugin that lets you view plain text files without a file extension
https://github.com/whomwah/qlstephen
MIT License
2.75k stars 161 forks source link

yaml files #95

Open mkartsev86 opened 4 years ago

mkartsev86 commented 4 years ago

Can you add support for .yaml and .yml files?

leewi9 commented 4 years ago

any update please?

mkartsev86 commented 4 years ago

it's a text files

cscetbon commented 4 years ago

Is there any way to tell QLStephen to open those too ?

ghost commented 4 years ago

Yes, that would be great!

mysticflute commented 4 years ago

In the meantime another option that worked for me is https://github.com/anthonygelibert/QLColorCode, but it requires a little modification. Look at the Readme for how to add support for additional code languages.

To summarize you have to edit the Info.plist file in the package. Add an entry under Document types > Item 0 > Document Content Type UTIs containing the value public.yaml . (for markdown you can also add net.daringfireball.markdown).

A quick tip is that you can also change the highlight theme, font, etc...

You can probably make a similar change to qlstephen but I haven't tried it.

JJGO commented 4 years ago

In the meantime another option that worked for me is https://github.com/anthonygelibert/QLColorCode, but it requires a little modification. Look at the Readme for how to add support for additional code languages.

To summarize you have to edit the Info.plist file in the package. Add an entry under Document types > Item 0 > Document Content Type UTIs containing the value public.yaml . (for markdown you can also add net.daringfireball.markdown).

A quick tip is that you can also change the highlight theme, font, etc...

You can probably make a similar change to qlstephen but I haven't tried it.

Awesome, that worked for me! Are you planning to submit a pull request to QLColorCode that implements your changes ?

ruslaniv commented 4 years ago

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

ghost commented 4 years ago

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

Yay, that worked!

ahmetgeymen commented 4 years ago

Created a PR. https://github.com/whomwah/qlstephen/pull/100