-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Read project from [projectmap]
in .wakatime.cfg
, if set
#11
Comments
It might be a problem, |
Found this for reading Another aspect: It needs to regexp-match against the array of regexps given in Might suck to handle / escape those regexps given as keys in At least that's how it's working for the other IDE-plugins so far. So all in all, a bit more involved. But would be really nice to have :). |
Can we parse it via |
Huh, that might work. Haven't look at the CLI options admittedly. Could look around how others are doing this in other plugins, too! |
Looks like that may even be the default behavior, if the folder is not explicitly given to the CLI?
from: https://wakatime.com/help/creating-plugin#sending-file-to-wakatime-cli:executing-background-process So possibly this part is duplicating default behaviour of the CLI? But I'm not sure if that behavior is restricted to Any idea if that would have other, unintended consequences? Like in the way logged time is displayed inside the wakatime dashboard? |
That's correct, but you'll need to use |
Could we also add a check for a
It's definitely much easier to parse than Thanks! EDIT: I submitted PR #13 to add support for the |
PRs are welcome 🙂 |
Would expect the |
@sobolevn I'd love to help! Time to reach into that tiny corner of my brain where I stuff my shell script knowledge 😂
@julrich yep it does check it first. Those two links in my last comment are where |
Would be really nice, if the plugin could read the
projectmap
defined in.wakatime.cfg
.Could fall back / use the existing behaviour, if that doesn't exist.
As all the other IDEs I'm using (vim, VS Code, PHPStorm) already respect that entry, which results in consistent projects in wakatime, it would be really nice to match that. Because git repositories don't necessarily map to projects in a 1:1 manner.
Would be open to trying my hands on a PR, just not sure how fast I'd be... as I'm not really knowledgeable in zsh scripting.
The text was updated successfully, but these errors were encountered: