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

Add Support for project-level Config Files #884

Open
theAkito opened this issue May 15, 2023 · 1 comment
Open

Add Support for project-level Config Files #884

theAkito opened this issue May 15, 2023 · 1 comment
Assignees

Comments

@theAkito
Copy link

Basically, project_api_key, but with api_url. For example, project_api_url.

The above is the simple & quick solution for one bigger problem. The ideal solution for all problems on the other hand would be each project having its own optional configuration file, overwriting settings from the global file. So, if the project file has a different api_url only that one gets overriden.

We already may use a .wakatime-project, so why not actually making it work (or simply adding a normal .wakatime in the project directory)?

@alanhamlett alanhamlett transferred this issue from wakatime/vscode-wakatime May 15, 2023
@alanhamlett alanhamlett changed the title Add Support for multiple api_url or project-level Configuration Files Add Support for project-level Config Files May 15, 2023
@alanhamlett
Copy link
Member

alanhamlett commented May 15, 2023

Project-specific.wakatime files would be nice. We would look up the parent folder tree for a file named .wakatime, making sure to exclude any folders with that name because one always exists at ~/.wakatime/, and have those project configs overwrite the global ~/.wakatime.cfg configs. We need to name it .wakatime without .cfg so it doesn't confuse the global ~/.wakatime.cfg file for a project config.

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

No branches or pull requests

3 participants