qlstephen icon indicating copy to clipboard operation
qlstephen copied to clipboard

yaml files

Open mkartsev86 opened this issue 5 years ago • 9 comments
trafficstars

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

mkartsev86 avatar Mar 19 '20 23:03 mkartsev86

any update please?

leewi9 avatar Apr 01 '20 11:04 leewi9

it's a text files

mkartsev86 avatar Apr 01 '20 15:04 mkartsev86

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

cscetbon avatar Apr 08 '20 04:04 cscetbon

Yes, that would be great!

ghost avatar Apr 09 '20 21:04 ghost

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.

mysticflute avatar May 20 '20 02:05 mysticflute

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 ?

JJGO avatar May 20 '20 14:05 JJGO

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

ruslaniv avatar Jul 05 '20 16:07 ruslaniv

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

Yay, that worked!

ghost avatar Jul 08 '20 17:07 ghost

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

ahmetgeymen avatar Jul 23 '20 09:07 ahmetgeymen