quickadd
quickadd copied to clipboard
Add unused macros detection feature
Summary
Add functionality to detect and highlight macros that are no longer used or referenced anywhere in QuickAdd configurations.
Problem
Over time, users accumulate many macros and may:
- Create test macros that are never deleted
- Remove references to macros but forget to delete the macro itself
- Have orphaned macros from changed workflows
- Struggle to identify which macros are actually in use
Proposed Solution
Add "Unused Macros Detector" feature in QuickAdd settings:
Detection Logic
- Scan all Choice configurations for macro references
- Check for macros called via API in user scripts
- Identify macros never referenced anywhere
- Show last-used dates if available
UI Features
- "Find Unused Macros" button in settings
- List view showing potentially unused macros
- Confirmation before bulk deletion
- Export unused macros before deletion (for backup)
Implementation Ideas
- Scan choice configurations for macro calls
- Parse user scripts for
quickAddApi.executeChoice()calls - Track macro usage statistics over time
- Safe deletion with confirmation dialogs
Benefits
- Cleaner macro organization
- Reduced cognitive load when browsing macros
- Better performance with fewer unused macros
- Easier maintenance of large macro collections
Related
Similar to "unused CSS" detectors in web development tools.