Comments (10)
Filetype support is somewhat complicated, if you run mdls -name kMDItemContentType file
you get the Uniform Type Identifier for that file but supported UTIs have to be declared in the plugin like this: https://github.com/brinsche/QLSyntax/blob/master/QLSyntaxPlugin/Info.plist#L31 as far as I know, so supporting arbitrary may be impossible
do you mean automatic light/dark support? setting a custom theme should work already
from qlsyntax.
in both cases uti's have public.data and your old QLSyntaxHighlight shows the contents of files on High Sierra. But anyway, thanks for the clarification
do you mean automatic light/dark support?
Of course. With different themes for light/dark.
from qlsyntax.
Hm, weird. Maybe I'll have time to look into that on the weekend, thanks for the report
from qlsyntax.
Didn't you find time?
from qlsyntax.
Not yet sorry, but I may have longer weekends soon and I ordered a new macbook for additional motivation
from qlsyntax.
It will be great.
from qlsyntax.
I've pushed a new version with a second setting for the dark theme and dark/light mode detection when highlighting.
You might need to run rustup target add aarch64-apple-darwin
to build it, because the rust library will be compiled for both architectures at the moment.
I'll look into files without extensions and improving the UI later
from qlsyntax.
Thanks.
from qlsyntax.
Is there any progress?
from qlsyntax.
Sorry I kinda forgot about this, but I just tried your example and for my the kMDItemContentType changes with the file extension, I don't know if I can do much about that
$ echo test > test
$ mdls -name kMDItemContentType test
kMDItemContentType = "public.data"
$ echo test > test.test
$ mdls -name kMDItemContentType test.test
kMDItemContentType = "dyn.ah62d4rv4ge81k3pxsu"
from qlsyntax.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlsyntax.