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

Base-Functionality for the Extension #1

Merged
merged 15 commits into from
Sep 24, 2022
Merged

Base-Functionality for the Extension #1

merged 15 commits into from
Sep 24, 2022

Conversation

MhouneyLH
Copy link
Owner

Summary

  • add keystroke-counter
  • counter works with different time-spans (second, minute, hour, day, week, month, year, total)
  • resetting counter, when timespan is over
  • wpm-counter, that updates every second
  • analytics about which keys were pressed the most

Examples:
image
image
image
image

@MhouneyLH MhouneyLH merged commit 012a27b into master Sep 24, 2022
@MhouneyLH MhouneyLH self-assigned this Oct 1, 2022
@MhouneyLH MhouneyLH added the enhancement New feature or request label Oct 1, 2022
MhouneyLH added a commit that referenced this pull request Jan 6, 2024
MhouneyLH added a commit that referenced this pull request Jan 6, 2024
* feat: using interface instead of map for the keystrokes

* feat: add class for KeystrokeTimeSpans

* feat: add tests for keystroke timespan class

* feat: add keystroke repository and tests for it

* fix: keystroke repository is now a singleton and add test for this

* feat: format every file and use repository instead of weird interface manager

* fix: remove resetOneTimespanKeystrokesAmount()

* refactor: add pressedKeys in KeystrokeTimespan and group tests of this class (+ add tests for pressedKeys)

* feat: add addPressedKey() and addPressedKeyToAll() (+ tests for them)

* feat: add resetPressedKeys() and collect every pressed key the most pressed keys + reset them after time limit (+ add test for new method)

* feat: add getMostOftenPressedKeysInTotalWithCount() in the repository (+ add test for this method)

* refactor: add correct method for calculating the average wpm (+ add tests for the class)

* fix: message for pressed key analytics

* feat: add wpmStatusBar and rearrange the code in the extension.ts file (+ add test for new class)

* feat: add keystroke count status bar and refactor extension.ts for cleaner method calling

* refactor: put vscode_utils and utils in one single file

* refactor: remove explicit count member in keystroke time span (now using pressedKey-map directly)

* test: add test for map initializer in keystroketimespan

* refactor: add messages functions in the correct file + add tests for them

* wip

* feat: add support for special key characters like (enter, backspace, etc.) + add tests for these cases

* fix PR comments #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant