I made Codedraft proactive!
Source: Dev.to
Overview
CodeDraft is now active and observant. Instead of waiting for you to remember to capture learnings, it works in the background to suggest them at the right time! ⚡️💪🏽
If you are just hearing about CodeDraft, it is an intelligent coding extension that helps you turn your daily coding into publishable drafts for blogs or social media.
How it Works
- Activity monitoring – CodeDraft watches your activity (file saves, Git commits) to identify “interesting” moments.
- Proactive prompts – When an interesting change is detected, it prompts you to capture the learning.
- Status bar – A status bar item keeps you informed about pending captures.
How to Verify
File Change Detection
- Open a source file (TypeScript/JavaScript).
- Make a significant change (e.g., add a new function with > 20 lines or add a
try/catchblock). - Save the file.
Result: You should see a notification:
“Interesting change detected. Capture this learning?”
Commit Detection
- Stage some changes.
- Commit with a message containing keywords like
fix,refactor, orfeat. Example:
git commit -m "fix: resolve null pointer exception"
Result: CodeDraft will prompt:
“Significant commit detected: … Capture this learning?”
Status Bar
- 👁️ (Eye Icon): CodeDraft is watching (0 pending captures).
Weekly Review
On Fridays at 5 PM (configurable), CodeDraft reminds you to review your week’s learnings.
Customisation
You can customise the proactive behaviour in VS Code settings:
CodeDraft > Proactive