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

how to handle special files #1043

Open
Redhawk18 opened this issue Nov 24, 2023 · 3 comments
Open

how to handle special files #1043

Redhawk18 opened this issue Nov 24, 2023 · 3 comments

Comments

@Redhawk18
Copy link

Hey, I'm working on a program that uses file icons for different files. A common problem this runs into is that people want files like a Dockerfile and a docker-compose.yml to have the same icon. This happens all over the place, for example Cargo.toml and Cargo.lock most icon packs have different icons for those two than any old .toml file.

I wasn't sure if this was out of scope of the project.

@XAMPPRocky
Copy link
Owner

Thank you for your issue! I'm not sure how the question relates to tokei?

@Redhawk18
Copy link
Author

Thank you for your issue! I'm not sure how the question relates to tokei?

Because its the same as counting languages, in many ways. As a end user of the library it provides a solution to being able to do something different if this toml is a Cargo.toml or a random .toml. This works exactly like icons do in VSCode if you use that.

I wanted to make a issue since I wasn't even sure this is within scope of the project.

@spenserblack
Copy link
Contributor

spenserblack commented Dec 11, 2023

In other words, are you requesting that tokei has a special language type for these special files? E.g. docker-compose.yml would have the DockerCompose type? Or perhaps an additional group field on Language that would be Group::Docker in this case?

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