beyondgrep / ack3

ack is a grep-like search tool optimized for source code.
https://beyondgrep.com/
Other
712 stars 66 forks source link

Add new type: QML #302

Open shaforostoff opened 4 years ago

shaforostoff commented 4 years ago

https://en.wikipedia.org/wiki/QML QML is a user interface markup language. It is a declarative language (similar to CSS and JSON) for designing user interface–centric applications. Inline JavaScript code handles imperative aspects. It is associated with Qt Quick, the UI creation kit originally developed by Nokia within the Qt framework. Qt Quick is used for mobile applications where touch input, fluid animations and user experience are crucial.

I suggest to also include .qrc extension because in QML files are added to application by including them in qrc file

Another extension that would make sense to include is .js, since .qml file can import .js files

--type-set=qml:ext:qml,qrc,js

petdance commented 4 years ago

Do you have a custom file type set up in your .ackrc? What is it? How long have you been using it? Is your use case to only search QML files, or to exclude them?

shaforostoff commented 4 years ago

I have written .ackrc just recently. Normally I wouldn't need to exclude qml files from search, instead I would use --cpp or --cmake.

Oh, and another extension that would make sense is .js, since .qml file can import .js files