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

Detect project if possible #3

Open
alanhamlett opened this issue Jun 28, 2024 · 2 comments
Open

Detect project if possible #3

alanhamlett opened this issue Jun 28, 2024 · 2 comments

Comments

@alanhamlett
Copy link
Member

The only way would be detecting if a file or folder is open in the app, and looking for a git repo in that folder or parent folders.

@gandarez
Copy link
Member

Couldn't it rely exclusively on wakatime-cli to detect project?

@alanhamlett
Copy link
Member Author

alanhamlett commented Aug 22, 2024

Most apps use --entity-type app and send the app's name instead of a file path, so no way for wakatime-cli to detect a project.

For Chrome and other browser apps, we can do like the browser extension and detect projects from the DOM or Url.

For Figma, and other apps that have a project we can detect projects from the app's GUI.

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

2 participants