wakatime / legacy-python-cli

Command line interface used by all WakaTime text editor plugins.
https://wakatime.com/
BSD 3-Clause "New" or "Revised" License
1.02k stars 84 forks source link

Wakatime language identification error #225

Open chenboshuo opened 4 years ago

chenboshuo commented 4 years ago

My latex class file(*.cls) was identified OpenEdge ABL

OpenEdge ABL
~/Documents/MathModels/cumcm2/cumcm_template/thesis/cumcmthesis.cls

~/Documents/latex_template/cumcm_template/thesis/cumcmthesis.cls

image

egordorichev commented 4 years ago

Didn't want to open a new issue for this, but yeah, it would be really neat, if you could actually specify/modify the language somehow.

image

Say I'm working with a little-known language, and it would be really neat if I could go into settings and define something like:

*.myfiletype == My Awesome Language

alanhamlett commented 4 years ago

it would be really neat, if you could actually specify/modify the language somehow.

Yep, you can do that with a "Custom Rule" matching the end of the file: https://wakatime.com/settings/rules

alanhamlett commented 4 years ago

My latex class file(*.cls) was identified OpenEdge ABL

We'll fix this in a future wakatime-cli release, but for now you should use custom rules to fix the language. Let's leave this issue open until the code fix is released.

egordorichev commented 4 years ago

Oh, my bad, huge thanks for pointing this feature out to me!