smittytone / PreviewCode

QuickLook source code preview and icon thumbnailing app extensions for macOS Catalina and beyond
https://smittytone.net/previewcode
MIT License
41 stars 3 forks source link

Some extensions/files that could be added for the code preview. #5

Closed oderwat closed 1 year ago

oderwat commented 1 year ago

Hi, I just bought your extensions, and of course, I have a request :)

Could you please add those standard Go files to be previewed?

And probably (which actually is YAML though):

NOTE: I have no idea if it is possible to add those, especially the later ones.

smittytone commented 1 year ago

I can look into adding those. Dockerfiles are already on the roadmap.

mrhammadasif commented 1 year ago

Most common file extension for TypeScript is .ts. Also, need support for .vue extension

smittytone commented 1 year ago

As it says in the Read Me, PreviewCode doesn’t support TypeScript .ts files because the .ts file extension is a standard for transport stream video files. The workaround is to use .tsx for TypeScript files.

But I can look at adding .vue support. I take it you mean .vue for View.js?

mrhammadasif commented 1 year ago

But I can look at adding .vue support. I take it you mean .vue for View.js?

Actually, it means Vue.js https://vuejs.org/. For reference, you can have a look at following packages:

SoKamil commented 1 year ago

As it says in the Read Me, PreviewCode doesn’t support TypeScript .ts files because the .ts file extension is a standard for transport stream video files. The workaround is to use .tsx for TypeScript files.

But I can look at adding .vue support. I take it you mean .vue for View.js?

Can't this behavior for .ts be overridden?

smittytone commented 1 year ago

I’m considering doing that since I guess most folks using PreviewCode (including me) will be using .ts for TypeScript files rather that transport stream video files.

oderwat commented 1 year ago

Even if they have both, can't you open it and if it is not text, show a message, explaining what happened?

smittytone commented 1 year ago

Update: preliminary .vue support coming in the next release, along with .gml (GameMaker Language) and some Xcode-specific file types.

Support for the Go .mod, .sum and .work files will appear in the next release of PreviewText, which is free.

Actively researching solutions to the .ts issue, but a solution may not make it to the next release.