Have switched to Apple Silicon with Ventura recently, here's my solution to have OKish preview on NFO files :
- install QLStephen - I did using brew
- run
mdls -name kMDItemContentType file.nfo using a NFO of your choice
- I have Ascension installed, so I got
kMDItemContentType = "com.byteproject.ascension.nfo" as result, you may get something else
- open
~/Library/QuickLook/QLStephen.qlgenerator/Contents/Info.plist with the editor of your choice
- below
LSItemContentTypes, you'll find an array with content types, I added the content type for NFO on my setup:
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
<string>public.content</string>
<string>com.byteproject.ascension.nfo</string>
</array>
- run
qlmanage -r and qlmanage -r cache
- restart the finder (alt - cmd - Esc)
- test the preview
Source : whomwah/qlstephen#23
Would be nice to have Ascension's font BlockZone used for preview, alas this feature is missing in QLStephen.
Preview not working anymore
If it stops working, maybe another LSItemContentTypes got associated with the NFO file. I had to again mdls -name kMDItemContentType and add the new content type, org.planbnet.nfo, to QLStephen's info.plist
Run the qlmanage commands and restart the finder, et voilà :)
Have switched to Apple Silicon with Ventura recently, here's my solution to have OKish preview on NFO files :
mdls -name kMDItemContentType file.nfousing a NFO of your choicekMDItemContentType = "com.byteproject.ascension.nfo"as result, you may get something else~/Library/QuickLook/QLStephen.qlgenerator/Contents/Info.plistwith the editor of your choiceLSItemContentTypes, you'll find an array with content types, I added the content type for NFO on my setup:qlmanage -randqlmanage -r cacheSource : whomwah/qlstephen#23
Would be nice to have Ascension's font BlockZone used for preview, alas this feature is missing in QLStephen.
Preview not working anymore
If it stops working, maybe another LSItemContentTypes got associated with the NFO file. I had to again
mdls -name kMDItemContentTypeand add the new content type,org.planbnet.nfo, to QLStephen's info.plistRun the qlmanage commands and restart the finder, et voilà :)