Skip to content

Commit e87207b

Browse files
committed
Merge branch 'main' into develop
2 parents 8cbba74 + 1a21951 commit e87207b

20 files changed

Lines changed: 597 additions & 71 deletions

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Extension
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: # Allow manual trigger
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
environment: VSC EXT # Specify the environment where the secret is stored
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '18'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Compile
27+
run: npm run compile
28+
29+
- name: Install vsce
30+
run: npm install -g @vscode/vsce
31+
32+
- name: Package Extension
33+
run: vsce package
34+
35+
- name: Publish to Visual Studio Marketplace
36+
run: vsce publish -p "${{ secrets.VSC_PAT }}"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Simple Coding Time Tracker
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ Simple Coding Time Tracker is a powerful extension for Visual Studio Code that h
1010
- **Automatic Time Tracking**: Seamlessly tracks your coding time in the background.
1111
- **Project-based Tracking**: Organizes time data by project for easy analysis.
1212
- **Status Bar Display**: Shows your today's total coding time duration in real-time.
13-
- **Tooltip on Status Bar**: Shows the total coding time weekly, monthly and all time basis.
13+
- **Tooltip on Status Bar**: Shows the total coding time weekly, monthly, and all time basis.
1414
- **Detailed Summaries**: View comprehensive reports of your coding activity. You can search your total time on a particular day or project.
1515
- **Data Persistence**: Safely stores your time data for long-term analysis.
16+
- **Configurable Save Interval**: Customize how often your coding time data is saved (default: 5 seconds). Adjust this in VS Code settings to balance between data accuracy and system performance.
17+
1618

1719
## Screenshots
1820
### Status Bar
@@ -24,11 +26,19 @@ Tooltip shows the total coding time weekly, monthly and all time basis.
2426
![Tooltip](./images/tooltip.png)
2527

2628
### Summary page
27-
You can search your total time on a particular day or project.
28-
![Summary page](./images/summarypage.png)
29+
The summary page provides a detailed report of your coding activity. You can search your total time on a particular day or project.
30+
31+
![Summary page ](https://raw.githubusercontent.com/twentyTwo/static-file-hosting/main/vsc-ext-coding-time-tracker-files/Simple-Coding-Time-Tracker.gif)
32+
33+
### All Command Palette Commands
34+
There are total 3 commands in the command palette available for this extension.
35+
36+
1. SCTT: Show Coding Time Summary
37+
2. SCTT: Reset Coding Timer for Today
38+
3. SCTT: Reset All Coding Timers
39+
40+
![All Command Palette Commands](./images/commands.png)
2941

30-
### Summary page with date range search - new feature from [0.2.0]
31-
![Summary page with date range search](./images/summarypage_new.png)
3242

3343
## Installation
3444

@@ -43,19 +53,52 @@ Once installed, the extension will automatically start tracking your coding time
4353

4454
To access detailed summaries and reports, use the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and search for "Time Tracker" to see available commands.
4555

46-
## Data Saving Interval
56+
### Configuring Save Interval
57+
You can customize how often the extension saves your coding time data:
58+
1. Open VS Code Settings (Ctrl+, or Cmd+, on macOS)
59+
2. Search for "Simple Coding Time Tracker"
60+
3. Find the "Save Interval" setting
61+
4. Enter your preferred interval in seconds (default is 5 seconds)
62+
- Lower values (e.g., 5-10 seconds) provide more frequent updates but may impact performance
63+
- Higher values (e.g., 30-60 seconds) are more efficient but update less frequently
64+
65+
## Control Panel Commands
66+
67+
The Simple Coding Time Tracker extension offers a range of commands accessible through the Command Palette, designed to streamline your coding time tracking experience. Here are the primary commands available:
68+
69+
To access these commands, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
70+
71+
- **Show Summary**:
72+
- Command Title: `SCTT: Show Coding Time Summary`
73+
- This command displays a comprehensive summary of your coding activity, including the total time invested in projects and a daily breakdown.
74+
75+
- **Reset Timer for Today**:
76+
- Command Title: `SCTT: Reset Coding Timer for Today`
77+
- This command resets the coding time tracker for the current day, allowing you to start anew without any previous data influencing your current session.
78+
79+
- **Reset All Timers**:
80+
- Command Title: `SCTT: Reset All Coding Timers`
81+
- This command resets all coding time trackers. It includes a confirmation prompt to prevent unintended resets, ensuring you have full control over your data.
82+
83+
By using these commands, you can effectively manage your coding sessions and maintain precise records of your work.
4784

48-
The Simple Coding Time Tracker saves your coding time data to the background storage every 60 seconds (1 minute). This ensures that your progress is regularly recorded while minimizing the impact on performance.
4985

5086
## Changelog
5187

52-
### [0.2.0] - 2024-10-02
88+
### [0.2.3] - 2025-03-19
89+
- Made the save interval configurable by the user, with a default of 5 seconds.
90+
- Updated the documentation to reflect the new configuration option.
91+
92+
### [0.2.2] - 2024-10-04
93+
- Added command to reset all timers
94+
- Added a command to reset daily timer
95+
96+
### [0.2.1] - 2024-10-02
5397
- Enhanced the UI of the summary view for a more professional look
5498
- Implemented date range search functionality
5599
- Added a reload button to reset search fields and refresh data
56100
- Improved the layout and styling of the Total Coding Time section
57101

58-
59102
### [0.1.4]
60103
- Initial release
61104
- Automatic time tracking
@@ -70,3 +113,5 @@ We welcome feedback and contributions! If you encounter any issues or have sugge
70113

71114
For developers interested in contributing to the project, please check out our [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines and instructions.
72115

116+
117+

images/commands.png

29 KB
Loading

images/new_summarypage.png

41.3 KB
Loading

out/database.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/database.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/extension.js

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/statusBar.js

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)