QuickLook YAML preview and icon thumbnailing app extensions for macOS Catalina and beyond
App Extension-based macOS QuickLook previews and Finder thumbnails for YAML files.
Just run the host app once to register the extensions — you can quit the app as soon as it has launched. We recommend logging out of your Mac and back in again at this point. Now you can preview YAML documents using QuickLook (select an icon and hit Space), and Finder’s preview pane and Info panels.
You can disable and re-enable the Yaml Previewer and Yaml Thumbnailer extensions at any time in System Preferences > Extensions > Quick Look.
You can alter some of the key elements of the preview by using the Preferences panel:
NaN,
±INF`) can selected using the macOS colour picker.Changing these settings will affect previews immediately, but may not affect thumbnails until you open a folder that has not been previously opened in the current login session, you edit a thumbnail, or you log back into your Mac account.
If PreviewYaml reports that it was unable to render YAML, this is almost certainly caused by a slight malformation of the YAML itself — the error message should help you spot the problem. PreviewYaml’s YAML library is quite strict, so YAML malformations which other apps may accept may be rejected by PreviewYaml. For this reason, you can optionally tell PreviewYaml to display a file’s raw YAML in the event of a parsing error. This option is chosen in PreviewYaml’s Preferences panel and will allow you to QuickLook YAML files, albeit without rendering.
Comments are not rendered.
This repository contains the primary source code for PreviewYaml. Certain graphical assets, code components and data files are not included. To build PreviewYaml from scratch, you will need to add these files yourself or remove them from your fork.
The files REPLACE_WITH_YOUR_FUNCTIONS
and REPLACE_WITH_YOUR_CODES
must be replaced with your own files. The former will contain your sendFeedback(_ feedback: String) -> URLSessionTask?
function. The latter your Developer Team ID, used as the App Suite identifier prefix.
You will need to generate your own Assets.xcassets
file containing the app icon and an app_logo.png
file.
You will need to create your own new
directory containing your own new.html
file.
Contributions are welcome, but pull requestss can only be accepted when they target the develop
branch. PRs targetting main
will be rejected.
Contributions will only be accepted if they code they contain is licensed under the terms of the MIT Licence
NaN
, ±INF
).PreviewYaml © 2024, Tony Smith (@smittytone). Contains YamlSwift © 2019 Behrang Noruzi Niya.
Source code only licensed under the MIT Licence.