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 - Track Lines of Code #609

Open
WesDowney opened this issue Jun 11, 2020 · 5 comments · Fixed by #1023
Open

Feature Request - Track Lines of Code #609

WesDowney opened this issue Jun 11, 2020 · 5 comments · Fixed by #1023
Assignees
Labels
p2 Low Priority

Comments

@WesDowney
Copy link

It would be cool if Wakatime was also able to track lines of code added and deleted.

@WesDowney WesDowney changed the title Feature Request Feature Request - Track Lines of Code Jun 11, 2020
@alanhamlett alanhamlett transferred this issue from wakatime/vscode-wakatime Dec 26, 2021
@gandarez gandarez added p2 Low Priority feature request and removed triage labels Feb 15, 2022
@alanhamlett
Copy link
Member

We track the total number of lines in the currently focused file, so we could extrapolate the number of lines added/deleted. However, I think using Git for this info works better.

@alanhamlett
Copy link
Member

alanhamlett commented Oct 24, 2023

We explored this in #946 and found counting the number of additions/deletions as integers at a given point in time (when sending heartbeats) could be displayed as a line area chart green/red lines. Like the Code Frequency chart:
Screenshot_2023-10-24-19-30-28-72_40deb401b9ffe8e1df2f1cc5ba480b12

Would having this data from WakaTime provide any benefit over how it's already provided by GitHub?

@alanhamlett
Copy link
Member

Related discussion from GitHub asking for product feedback on their Code Frequency graph:

https://github.com/orgs/community/discussions/39757

@TENX-S
Copy link

TENX-S commented Jan 24, 2024

This is an interesting feature. Any progress on this?

@alanhamlett
Copy link
Member

alanhamlett commented Jan 24, 2024

We should have the editor plugins keep counters of added and deleted lines as two separate integers, sending along with other heartbeat params to wakatime-cli like --line-additions 2 --line-deletions 3. After sending the counts, the editor plugins should reset the two counts to zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Low Priority
Projects
None yet
4 participants