TidyDesk is an intelligent desktop cleanup tool that uses AI to automatically tag and organize your cluttered files and folders. With an intuitive GUI, powerful backend features, live monitoring capabilities, advanced search functionality, and comprehensive file management tools, it keeps your digital workspace clean and productive.
- ๐ค AI File Tagging (Optional): Uses OpenAI to understand and categorize files intelligently
- ๐๏ธ Automatic Organization: Sorts files into folders based on AI tags or default rules
- ๐ Complete Undo System: Restore all files to their original locations from any session
- ๐ง Local File Indexing: Maintains a SQLite database of moved files for tracking and reliability
- ๐๏ธ Toggle AI Usage: Disable AI tagging to save API usage and rely on standard rules
- ๐ Real-time Activity Log: See live status updates for each file processed
- ๐ท๏ธ Tag-Based Regrouping: Reorganize existing files by their AI-generated tags
- ๐ Real-time File Detection: Automatically monitors
~/Desktop
for new files using watchdog - ๐ค Auto AI Tagging: Configurable AI tagging for newly detected files
- ๐ Smart Organization Modes: Three organization options:
Desktop Folder
โ Creates~/Desktop/TidyDesk
and moves files thereOrganized Folder
โ Uses existing cleanup logic with categorizationDo Not Move
โ Index and tag only, leave files in place
- ๐ Live Status Updates: Real-time activity log with detailed file processing status
- ๐พ Persistent Settings: All monitoring preferences saved automatically
- ๐ Parallel File Indexing: Multi-threaded processing using ThreadPoolExecutor
- ๐ฎ CUDA-Ready Architecture: Optimized for systems with CUDA capabilities
- ๐ง Intelligent Worker Scaling: Automatically adjusts thread count based on CPU cores
- ๐ฆ Batch Processing: Processes files in optimized batches for better performance
- ๐ Progress Tracking: Real-time progress updates with file count and speed metrics
- ๐พ Memory Optimization: Efficient memory usage for large file sets
- ๐ธ Snapshot System: Create versioned snapshots of any folder at configurable intervals
- ๐ Automatic Monitoring: Watch multiple folders with customizable snapshot intervals
- ๐ Smart Comparison: Compare snapshots with detailed diff analysis (added/removed/modified files)
- โฉ๏ธ One-click Restore: Restore any snapshot to a chosen destination
- ๐๏ธ Storage Optimization: Automatic cleanup of old snapshots beyond configurable limits
- ๐ Statistics Dashboard: Comprehensive metrics on snapshots, disk usage, and activity
- ๐จ Dynamic Theme System: Multiple built-in themes with live preview and switching
- ๐ฑ Compact Horizontal Layout: Redesigned GUI for better space utilization
- โ๏ธ Environment Settings: Secure API key management with .env file integration
- ๐พ Settings Persistence: Save/load functionality for all configuration options
- ๐ Enhanced Progress Visualization: Detailed progress meters with comprehensive tracking
- ๐ง Status Bar System: Clean status updates instead of popup messages
- ๐ Multi-Criteria Search: Search by filename, tags, file type, and date ranges
- ๐ฏ Smart Filtering: Date ranges, tag-based filtering, and file type filtering
- ๐ Export Search Results: Export results to CSV format with detailed metadata
- ๐ท๏ธ Tag Management: Visual tag suggestions and clickable tag searches
- ๐ Search Analytics: Detailed statistics and result management
- ๐ Dual Database Search: Search both organized files and system file index
- ๐ฑ Tabbed Search Interface: Organized search with Basic, Advanced, and Results tabs
- ๐ฏ Quick Filters: Pre-built filters for recent files, untagged files, and more
- ๐ Context Menu Actions: Right-click operations for file management
- ๐๏ธ File Preview Integration: Preview files directly from search results
- ๐ Text File Preview: View content of text files, code files, and documents
- ๐ผ๏ธ Image Preview: Display images with proper scaling and quality
- ๐ File Metadata Display: Show detailed file information including size, dates, and properties
- ๐จ Syntax Highlighting: Code syntax highlighting for programming files
- ๐ฑ Responsive Preview Window: Scalable preview interface with multiple view modes
- ๐ Search Integration: Preview files directly from search results
- ๐ Path Information: Complete file path and location details
- ๐ Session-Based Organization: Each cleanup operation creates a trackable session
- ๐ Session Analytics: View statistics and progress for each session
- โฉ๏ธ Selective Undo: Choose specific sessions to undo from history
- ๐ Comprehensive History: Detailed logging of every file movement and operation
- ๐ท๏ธ Session Naming: Custom session names with automatic suggestions
- ๐ Success Rate Tracking: Monitor organization success rates and error patterns
- Dual Database Search: Now searches both organized files and system-wide file index
- Advanced Search Interface: Tabbed interface with Basic, Advanced, and Results sections
- File Type Discovery: Automatic detection of all available file types
- Quick Filter Actions: Pre-built filters for common search scenarios
- Search Result Context Menus: Right-click actions for file operations
- Universal File Preview: Preview text, images, and metadata for any file
- Syntax Highlighting: Code files display with proper syntax coloring
- Image Scaling: Automatic image resizing with quality preservation
- Metadata Display: Comprehensive file information including size and dates
- Search Integration: Preview files directly from search results
- Status Bar System: Replaced popup messages with clean status bar updates
- Enhanced Progress Tracking: More detailed progress indicators with ETA
- Theme Consistency: Improved theme application across all windows
- Responsive Design: Better scaling for different screen sizes
- Database Optimization: Improved query performance for large datasets
- Error Handling: Better error recovery and user feedback
- Memory Management: Optimized memory usage for large file operations
- Cross-Platform Compatibility: Enhanced support for different operating systems
-
Clone the repo:
git clone https://github.com/jeremystevens/tidydesk.git cd tidydesk
-
Create and activate virtual environment (optional but recommended):
python -m venv venv venv\Scripts\activate # On Windows # source venv/bin/activate # On macOS/Linux
-
Install dependencies:
pip install -r requirements.txt
-
Set up
.env
file: Create a.env
file in the project root and add your OpenAI key:OPENAI_API_KEY=your-api-key-here
Start the application with:
python main.py
โ You'll be greeted with a modern, tabbed GUI where you can:
- Toggle live monitoring and AI features
- Start cleanup operations with real-time progress
- Access the Time Machine for folder versioning
- Search and manage your organized files with advanced filters
- Preview files directly in the application
- Customize themes and settings with persistent storage
tidydesk/
โ
โโโ src/
โ โโโ gui.py # Modern tabbed GUI using TTKBootstrap
โ โโโ organizer.py # AI tagging, organizing logic, undo handling
โ โโโ desktop_watcher.py # Real-time desktop monitoring with watchdog
โ โโโ index_files.py # Multi-threaded file indexing system
โ โโโ time_machine.py # Filesystem snapshot and versioning
โ โโโ time_machine_gui.py # Time Machine interface
โ โโโ theme_manager.py # Dynamic theme management
โ โโโ search_module.py # Advanced search functionality
โ โโโ search_window.py # Search interface with preview integration
โ โโโ file_preview.py # File preview system
โ โโโ db.py # SQLite database handling
โ โโโ ai_tagger.py # OpenAI batch tagging logic
โ
โโโ .env # API key config (not committed)
โโโ config.json # Application settings and preferences
โโโ requirements.txt # Required libraries
โโโ main.py # Entry point
โโโ FEATURES.md # Comprehensive feature documentation
โโโ file_index.db # (auto-created) File metadata database
- ttkbootstrap: Modern GUI framework
- openai: AI-powered file tagging
- watchdog: Real-time filesystem monitoring
- pillow: Image processing and preview capabilities
- python-dotenv: Environment variable management
- Multi-threading: Utilizes all CPU cores for faster processing
- Batch Operations: Optimized batch processing for large file sets
- Smart Caching: Efficient memory usage and database operations
- Progress Optimization: Real-time progress tracking without performance impact
- System Integration: OS-specific optimizations for Windows, macOS, and Linux
- Database Indexing: Optimized queries for instant search results
- Desktop Cleanup: Automatically organize cluttered desktops with AI assistance
- File Management: AI-powered tagging and intelligent categorization
- Real-time Monitoring: Keep desktops organized automatically with live monitoring
- Version Control: Track folder changes over time with comprehensive snapshots
- File Discovery: Advanced search across organized and indexed file collections
- File Preview: Quick file inspection without opening external applications
- Workflow Automation: Streamline file organization workflows with session management
- Data Analytics: Track organization patterns and file management statistics
- Ensure your Desktop path is accessible (not under restricted OneDrive redirection)
- Live monitoring runs in background threads for optimal performance
- AI tagging uses paid OpenAI API callsโuse toggles wisely to control costs
- Time Machine snapshots are stored locally and can be configured for automatic cleanup
- Multi-threading performance scales with available CPU cores
- File preview supports most common file types with graceful fallbacks
- Search operates on both organized files and system-wide file index for comprehensive results
- Universal File Preview: Complete file preview system with syntax highlighting
- Enhanced Search Engine: Dual database search with advanced filtering
- Improved UI/UX: Status bar system and enhanced progress tracking
- Better Performance: Optimized database queries and memory management
- Live Desktop Monitoring: Real-time file detection and organization
- Multi-threaded Performance: Up to 10x faster file indexing
- Filesystem Time Machine: Complete folder versioning system
- Dynamic Themes: Multiple themes with live switching
- Enhanced Settings: Comprehensive configuration management
MIT License ยฉ 2025 Jeremy Stevens
- Cloud Integration: Support for cloud storage services
- Advanced AI Models: Integration with additional AI services
- Mobile Companion: Mobile app for remote file management
- Plugin System: Extensible architecture for custom functionality
- Collaborative Features: Multi-user file organization workflows
TidyDesk v2.0.1 - Your intelligent desktop companion for the modern digital workspace! ๐