DotCommand v1.4.0 - Smart Context Awareness Revolution π§ β‘
Intelligent Development Assistant with Project Understanding
A revolutionary VS Code extension that understands your project context, suggests relevant commands automatically, and provides framework-specific development workflows with professional update management.
π Quick Start (1 minute to intelligent)
- Install the extension from VS Code Marketplace
- Open any project - DotCommand automatically detects your tech stack
- Press
Ctrl+Alt+Spacefor instant context-aware suggestions - Enjoy framework-specific templates and native file pickers
π₯ Why DotCommand v1.4.0?
- π§ Smart Context Awareness - Understands your project and suggests relevant commands automatically
- β‘ Framework Intelligence - Specialized workflows for React, Vue, Angular, TypeScript, Go, Python, Docker, Git
- π― Native Integration - VS Code file pickers, Git branch dropdowns, status bar integration
- π± Professional Updates - Automatic "What's New" panels with beautiful changelog rendering
- ποΈ Enterprise Architecture - Clean TypeScript codebase with comprehensive testing
DotCommand v1.4.0 transforms from a command manager into an intelligent development assistant that understands your project context and suggests relevant commands automatically.
- Project Analysis - Scans your workspace for technology indicators
- Context Detection - Identifies frameworks, tools, and project structure
- Intelligent Suggestions - Shows relevant commands based on what you're working on
- Framework Workflows - Provides complete development pipelines for detected technologies
Technology Recognition:
- π¦ Node.js/npm - Detects
package.json, suggests npm scripts and dependencies - βοΈ React - Identifies React projects, suggests component creation and build workflows
- π¦ TypeScript - Recognizes
.tsfiles, suggests compilation and type checking - π³ Docker - Finds
Dockerfile, suggests container operations and networking - π Git - Detects
.gitdirectory, suggests branching and commit workflows - π Python - Identifies
requirements.txt, suggests venv and testing commands - πΊ Angular - Recognizes
angular.json, suggests CLI generators and builds
File Content Analysis:
- Pattern matching in source files (React imports, Angular decorators)
- Configuration file parsing (package.json scripts, tsconfig.json settings)
- Directory structure analysis for project type identification
Status Bar Integration:
- π‘ Lightbulb icon shows top suggestion for current context
- Click for instant access to context-aware commands
- Tooltip displays relevance score and matched triggers
Quick Picker (Ctrl+Alt+Space):
- Context-aware suggestions with relevance scores
- Framework-specific command categories
- Native VS Code file/folder picker integration
- Git branch dropdown with current branch highlighting
Template Manager:
- "Suggested for this Project" section at the top
- Context-aware recommendations based on detected technologies
- Relevance scoring and trigger explanations
React Projects:
- Component creation with hooks/contexts patterns
- Development server and build optimizations
- Testing workflows and deployment scripts
Vue.js Applications:
- SFC component generation with Composition API
- Vuex/Pinia state management commands
- Build and development server operations
Angular Workspaces:
- CLI generator commands for components, services, modules
- Development server with hot reload
- Production build and deployment workflows
TypeScript Projects:
- Compilation and type checking commands
- Interface and module generation
- Build pipeline integration
Go Applications:
- Module management and dependency commands
- Testing and benchmarking workflows
- Build and deployment pipelines
Python Environments:
- Virtual environment setup and management
- Package installation and dependency management
- Testing frameworks and linting tools
Docker Projects:
- Multi-stage build optimizations
- Container networking and volume management
- Compose file operations and orchestration
Git Repositories:
- Advanced branching strategies and merge workflows
- Tagging and release management
- Remote repository operations and collaboration
Update System:
- Automatic "What's New" panels on version updates
- Beautiful markdown changelog rendering
- Feature categorization with emojis and grouping
- Smart timing (3-day display limit) to avoid annoyance
Native VS Code Integration:
- File picker dialogs instead of text input for file paths
- Git branch dropdowns with current branch indicators
- Status bar integration with context awareness
- Professional tooltips and progress indicators
Architecture:
- ContextDetector class for workspace scanning
- SuggestionQuickAccess for status bar management
- UpdateService for version checking and panels
- Modular file structure with clean separation of concerns
Performance:
- 30-second caching for workspace scanning
- Real-time cache invalidation on file changes
- Lazy loading and efficient resource management
- Optimized suggestion algorithms
Quality Assurance:
- Comprehensive test suite covering all scenarios
- ESLint compliance with zero compilation errors
- TypeScript strict mode with full type coverage
- Real-world testing with 12 different project types
Before v1.4.0:
- Static command library requiring manual organization
- Generic templates without project awareness
- Manual file path input and branch selection
- No understanding of project context or technologies
After v1.4.0:
- Intelligent assistant that understands your project
- Context-aware suggestions appear automatically
- Framework-specific templates with complete workflows
- Native VS Code integration for professional UX
- 18/18 tasks completed - 100% success rate for major release
- 23 total tasks across infrastructure, templates, UI, and advanced features
- 13+ technologies automatically detected and supported
- Enterprise-grade codebase with maintainable, scalable architecture
β 5 Levels of Command Access
| Level | Method | Description |
|---|---|---|
| π― 1. Direct | Status Bar Buttons | Always-visible Quick Run, Favorites, Recent |
| β¨οΈ 2. Keyboard | 15+ Shortcuts | Power-user shortcuts for instant access |
| π 3. Search | Quick Command Picker | Universal fuzzy search across all commands |
| π‘ 4. Smart | Intelligent Suggestions | Auto-complete based on usage patterns |
| π 5. Context | Right-click Menus | Access everywhere in VS Code |
π§ Intelligent Features
Smart Organization
- Auto-Categorization - Commands sorted into
git-workspace,npm-scripts,docker-build, etc. - Usage-Based Promotion - Commands promoted to "Most Used" after 5 executions
- Favorites System - Star important commands for instant access
- 90-Day Trash Recovery - Safe deletion with full restore capability
AI-Powered Learning
- Terminal Learning - Automatically captures and categorizes commands
- Usage Analytics - Tracks patterns and suggests improvements
- Smart Suggestions - Context-aware command recommendations
- History Intelligence - Learns from your command execution patterns
β‘ Power User Features
Universal Access
- Quick Command Picker -
Ctrl+Shift+Rsearches everything - Status Bar Integration - Always-visible buttons
- Enhanced Shortcuts - 15+ keyboard combinations
- Context Menus - Right-click access everywhere
Advanced Workflows
- Command Templates - Dynamic commands with variables
- Template Manager - Visual template creation
- Batch Operations - Multi-select and bulk actions
- Terminal Integration - Seamless VS Code terminal support
π― Prepared Command Categories (v1.1.0)
π Git Commands (6 interactive)
- Create & Switch Branch:
git checkout -b {branch} - Commit with Custom Message:
git commit -m "{message}" - Push to Branch:
git push origin {branch} - Create Tag:
git tag -a {tag} -m "{message}"
π¦ NPM Commands (7 interactive)
- Install Package:
npm install {package} - Execute Custom Script:
npm run {script} - Add DevDependency:
npm install --save-dev {package}
π³ Docker Commands (8 with validation)
- Build Custom Image:
docker build -t {name} . - Run on Custom Port:
docker run -p {port}:{port} {image} - Execute Shell:
docker exec -it {container} sh
βΈοΈ Kubernetes Commands (6 interactive)
- Get Pod Logs:
kubectl logs {pod} - Scale Deployment:
kubectl scale deployment {deployment} --replicas={replicas} - Apply Manifest:
kubectl apply -f {manifest}
π§ Linux Commands (10 with file validation)
- Copy File:
cp {source} {destination}(requires .extension) - Move File:
mv {source} {destination}(requires .extension) - View File:
cat {file}(requires .extension) - Find Files:
find {directory} -name "{pattern}" - Search Text:
grep "{search}" {file}(requires .extension)
β¨οΈ Keyboard Shortcuts Reference
Global Shortcuts (Work Everywhere)
Ctrl+Shift+Rβ Quick Command Picker (universal search)Ctrl+Shift+1β Show Favorite CommandsCtrl+Shift+Hβ Show Recent CommandsCtrl+Shift+Yβ Command HistoryCtrl+Shift+Aβ Analytics DashboardCtrl+Shift+Tβ Template ManagerCtrl+Shift+Mβ Task Manager
Editor Shortcuts
Ctrl+Shift+Sβ Save Command (from selection)Ctrl+Shift+Vβ View Commands
Tree View Shortcuts (Context-Aware)
Ctrl+Shift+Fβ Toggle Favorite (on command items)Ctrl+Shift+Enterβ Run Command (on command items)Ctrl+Shift+Cβ Copy Command (on command items)Ctrl+Shift+/β Search/Filter (in command views)Ctrl+Shift+Xβ Clear Filters (in command views)
Legacy Shortcuts
Ctrl+Shift+S(Windows/Linux) orCmd+Shift+S(Mac) - Save a new commandCtrl+Shift+V(Windows/Linux) orCmd+Shift+V(Mac) - View and copy commands
βοΈ Configuration Options
Smart Features
dotcommand.suggestions.enabledβ Enable intelligent command suggestions (default: true)dotcommand.history.enabledβ Track command usage history (default: true)dotcommand.autoSave.enabledβ Learn commands from terminal (default: true)dotcommand.suggestions.sortByFrequencyβ Sort suggestions by usage (default: true)
Limits & Storage
dotcommand.general.maxCommandsβ Maximum stored commands (default: 1000)dotcommand.history.maxSizeβ History entries to keep (default: 1000)dotcommand.mostUsedThresholdβ Executions for "Most Used" promotion (default: 5)
Terminal Management
dotcommand.terminal.cleanup.enabledβ Auto-close inactive terminals (default: true)dotcommand.terminal.cleanup.timeoutMinutesβ Cleanup timeout (default: 30)dotcommand.terminal.category.enabledβ Category-based terminal naming (default: true)
Validation & Safety
dotcommand.testing.enabledβ Enable command validation (default: true)dotcommand.testing.strictModeβ Prevent saving dangerous commands (default: false)dotcommand.autoSave.minLengthβ Minimum command length to save (default: 2)
VS Code Tasks Integration π οΈ
DotCommand integrates seamlessly with VS Code's built-in task system, allowing you to run your commands directly from the Task Runner (Ctrl+Shift+P β "Tasks: Run Task").
Four Sources of Tasks
- π
.vscode/tasks.json- Your standard build tasks (compile, watch) - πΎ Saved Commands - Your personal saved commands (favorites & most-used)
- β‘ Built-in Prepared - All 42+ built-in prepared commands
- π
.vscode/tasks.json(from templates) - Auto-generated project workflows (NEW!)
π― Create New Task Template (v1.1.0) - Auto-Generate Project Workflows
DotCommand now provides one-click task template generation to bootstrap your project with complete task workflows!
ποΈ How to Use
-
Open "My Commands" sidebar β click the
Create New Task Templatebutton (π icon) -
Select project type from 6 templates:
- π¦ NPM Project - Node.js with npm scripts, build, test, lint workflows
- π Git Repository - Version control commands, branching, tagging
- π³ Docker Container - Container build, run, compose operations
- π Python Project - Virtual environments, testing, formatting
- βοΈ Frontend - React/Vue/Angular development workflows
- π οΈ Custom Project - Generic development tasks (placeholders)
-
Template creates
.vscode/tasks.jsonwith project-specific tasks -
Tasks appear in VS Code β Ctrl+Shift+P β "Tasks: Run Task"
-
Move tasks to personalize β right-click any task β "Move to My Commands"
π Multi-Template Support
When .vscode/tasks.json already exists, DotCommand offers smart merging:
- Add to existing tasks β Combine new template with current tasks
- Replace all tasks β Full replacement (backup recommended)
- Cancel β Keep existing setup unchanged
Example: NPM Project Template (11 tasks)
π¦ NPM Tasks/
βββ Install Dependencies npm install
βββ Start Development npm run dev
βββ Start Production npm run start
βββ Build Project npm run build
βββ Run Tests npm run test
βββ Run Tests Watch npm run test:watch
βββ Run Linter npm run lint
βββ Format Code npm run format
βββ Clean Cache npm run clean
βββ Audit Packages npm audit
βββ Update Packages npm update
π Customization Workflow
- Generate template β Get complete task suite instantly
- Run tasks β Test and verify functionality via VS Code Tasks panel
- Customize β Move tasks to "My Commands" for modification
- Iterate β Add more templates or adjust existing ones
- Scale up β Build comprehensive multi-project workflows
Using tasks.dotcommand
Create a tasks.dotcommand file in your project root for custom project tasks:
{
"version": "1.0.0",
"preparedTasks": [
{
"label": "π Deploy to Production",
"command": "npm run build && npm run test && git tag v${input:version} && git push origin v${input:version}",
"description": "Full production deployment workflow",
"category": "Deployment",
"parameters": [
{
"name": "version",
"description": "Version to deploy (e.g., 1.2.3)",
"defaultValue": "1.0.0",
"type": "string"
}
]
},
{
"label": "π³ Start Development Stack",
"command": "docker-compose -f docker-compose.dev.yml up -d",
"description": "Start full development environment",
"category": "Development"
}
]
}Running Tasks
- Press Ctrl+Shift+P and select "Tasks: Run Task"
- Choose from your tasks organized by category:
- Git Commands - Branch operations, commits, tags
- NPM Commands - Package management, scripts
- Docker Commands - Container operations
- Saved Commands - Your personal favorites
- Project Tasks - Custom tasks from
tasks.dotcommand
Task Categories & Organization
Tasks are automatically categorized and appear in VS Code's task picker:
- π Build Group - Git and NPM tasks
- β‘ Other Group - Docker, Kubernetes, Linux commands
- β Favorites - Your starred saved commands
- π Project - Custom tasks from
tasks.dotcommand
Tasks refresh automatically when you update tasks.dotcommand or modify your saved commands.
Usage
Saving Commands
- Select text in your editor (optional)
- Press Ctrl+Shift+S (or Cmd+Shift+S on Mac)
- Enter the command (pre-filled if you had text selected)
- Optionally add a name and category for better organization
- Press Enter to save
Viewing and Using Commands
- Press Ctrl+Shift+V (or Cmd+Shift+V on Mac)
- Browse your saved commands in the tree view sidebar
- Double-click commands to run them directly in terminal
- Right-click commands for context menu options:
- π Run Command - Execute in active terminal
- π Copy Command - Copy to clipboard
- β Toggle Favorite - Star/unstar for quick access
- ποΈ Delete Command - Move to trash (recoverable within 90 days)
Intelligent Organization
π Smart Sections
- β Favorites - Starred commands for instant access
- π Recent - Last 10 executed commands
- ποΈ Trash - Deleted commands (90-day restoration window)
π Auto-Categories Commands are automatically categorized based on keywords:
git-workspaceβgit status,git add .,git diffnpm-scriptsβnpm run dev,npm run builddocker-buildβdocker build,docker-compose upk8s-deployβkubectl apply,helm install
π― Usage-Based Promotion
- Commands used 5+ times automatically move to "Most Used" category
- Commands used in last 30 days appear in Recent section
- Favorites always preserved during cleanup operations
π‘ Advanced Features
ποΈ Trash Bin Recovery
- Deleted commands go to trash (not permanently lost)
- 90-day recovery window - restore anytime
- Auto-cleanup removes trash after 90 days
- Visual indicators show deletion time
π€ Terminal Learning
- Automatically captures meaningful terminal commands
- Filters out navigation commands (
cd,ls,pwd) - Categorizes and organizes new commands instantly
- Silent operation with optional notifications
βοΈ Configuration Options
{
"dotcommand.general.maxCommands": 1000,
"dotcommand.autoSave.enabled": true,
"dotcommand.autoSave.minLength": 2,
"dotcommand.mostUsedThreshold": 5
}Examples
Here are some example commands you might want to save:
Package management
npm install lodash
npm run dev
npm run build
Git operations
git add .
git commit -m "feat: add new feature"
git push origin main
Docker commands
docker build -t myapp .
docker run -p 3000:3000 myapp
docker-compose up
File operations
find . -name ".ts" -type f
grep -r "TODO" src/
Installation
- Open this project in VS Code
- Press F5 to run the extension in development mode
- The extension will be installed in a new "Extension Development Host" window
Development
ποΈ Project Structure
src/
βββ extension.ts π― Main entry point (194 lines - clean & organized)
βββ commandDetection.ts π§ Smart categorization logic
βββ commandCleaning.ts π§Ή Terminal prompt cleaning utilities
βββ commandHandlers.ts β‘ User action handlers (save, run, delete, etc.)
βββ historyHandlers.ts π Terminal history import functionality
βββ trashHandlers.ts ποΈ 90-day trash bin management
βββ viewHandlers.ts π¨ View/UI management utilities
βββ treeView.ts π³ Enhanced tree view with smart features (350+ lines)
βββ storage.ts πΎ Data persistence with intelligent cleanup
βββ types.ts π TypeScript interfaces & definitions
βββ webview.ts π Rich web interface components
Building
npm install Install dependencies
npm run compile Compile TypeScript to JavaScriptPublishing
- Update version in
package.json - Run
npm run compile - Package with
vsce package - Publish with
vsce publish
Contributing
Please see CONTRIBUTING.md for detailed guidelines on how to contribute to this project.
License
MIT License - feel free to use this project as you wish.
Support
If you find this extension helpful, please consider:
- β Starring the repository
- π Reporting bugs or issues
- π‘ Suggesting new features
- β Buying me a coffee
Happy coding! π