Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work for YAML files *.yml #110

Open
ghost opened this issue Dec 22, 2020 · 2 comments
Open

Doesn't work for YAML files *.yml #110

ghost opened this issue Dec 22, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2020

No description provided.

@visnetje
Copy link

Work-around inspired by #87 (comment) :

Edit the Info.plist inside the QLStephen.qlgenerator in your favorite text editor and look for the following block:

			<key>LSItemContentTypes</key>
			<array>
				<string>public.data</string>
				<string>public.content</string>
			</array>

I managed to get both CSS and YAML to work by adding their UTI types as follows:

			<key>LSItemContentTypes</key>
			<array>
				<string>public.data</string>
				<string>public.content</string>
				<string>public.css</string>
				<string>public.yaml</string>
			</array>

Then I reloaded the QuickLook cache with qlmanage -r and qlmanage -r cache (in the Terminal app).

If adding the entry to Info.plist didn't seem to work, double check the UTI type for YAML files with the following command (in the Terminal app):

$ mdls -name kMDItemContentType ~/path/file.yml
kMDItemContentType = "public.yaml"

Where ~/path/file.yml is the path to the YAML file, and public.yaml is the part of my specific output that I used.

@benjaminapetersen
Copy link

+1 This would be great as an out of the box support. With so much software doing config via YAML (.yaml, .yml) this was actually the primary support I was looking for.

Adding .css also and honestly just about any developer related file extension seems a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants