GithubHelp home page GithubHelp logo

Comments (10)

brinsche avatar brinsche commented on August 22, 2024

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.

grylem avatar grylem commented on August 22, 2024

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.

brinsche avatar brinsche commented on August 22, 2024

Hm, weird. Maybe I'll have time to look into that on the weekend, thanks for the report

from qlsyntax.

grylem avatar grylem commented on August 22, 2024

Didn't you find time?

from qlsyntax.

brinsche avatar brinsche commented on August 22, 2024

Not yet sorry, but I may have longer weekends soon and I ordered a new macbook for additional motivation

from qlsyntax.

grylem avatar grylem commented on August 22, 2024

It will be great.

from qlsyntax.

brinsche avatar brinsche commented on August 22, 2024

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.

grylem avatar grylem commented on August 22, 2024

Thanks.

from qlsyntax.

grylem avatar grylem commented on August 22, 2024

Is there any progress?

from qlsyntax.

brinsche avatar brinsche commented on August 22, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.