Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Ability to count file as specific language #714

Open
BenStigsen opened this issue Feb 10, 2021 · 3 comments
Open

[Feature Request] Ability to count file as specific language #714

BenStigsen opened this issue Feb 10, 2021 · 3 comments

Comments

@BenStigsen
Copy link

The ability to count a custom file with a specific language would be nice.
This would also make tokei support custom languages, many similar languages and other types of custom files the user might make.

Currently I'd like to count a .wren file as C code, but I'm only able to do that if I first change the extension of the file which can be messy over multiple files. So ability to count custom file types and/or filenames with a specific syntax.

@matu3ba
Copy link

matu3ba commented Sep 23, 2021

@BenStigsen Is there a reason, why you cant recursively search for file endings with fd and rename them or keep a separate list and use a shell script to count them and rename them back with mv?
fd even support convenient ignorelists (with .gitignore syntax).

See my dotfiles example for inspirations how to do it.

@BenStigsen
Copy link
Author

This does not sound like a good solution. It shouldn't be necessary for me to rename a list of files, especially in big projects, then run Tokei, then rename the files again. It'd make much more sense if I could just do something like tokei --language=c *.wren.

@ice1000
Copy link

ice1000 commented Aug 31, 2022

I second this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants