- Extract mover and undo functionality into dedicated modules (mover/ and undo/ subdirectories)
- Move cross-platform file operations to separate file_ops.rs module for reusability
- Extract batch and categorizer tests into separate test files (batch_test.rs, categorizer_test.rs)
- Refactor orchestrator.rs with extracted helper functions for improved readability
- Separate cache and undo log initialization
- Extract path resolution and offline mode determination logic
- Simplify main organization flow by delegating to helper functions
- Update module exports to expose new types and functions (MoveError, MoveSummary, UndoError, UndoSummary)
- Reduce code duplication of move_file_cross_platform implementation
- PromptBuilder::new now takes &[String] instead of Vec<String>
- GeminiClient::new now takes &str, &[String] instead of owned values
- FileBatch::from_path now takes &Path instead of PathBuf
- categorize_files_offline now takes Vec<String> (ownership) instead of &[String]
- handle_offline_organization now takes FileBatch by value
These changes eliminate ~5-50 KB of unnecessary allocations for typical
file counts, reduce allocator pressure, and improve API clarity by properly
expressing ownership semantics.
No functional changes - all tests pass.
- Add --offline flag to force offline mode
- Automatic detection when Gemini API is unavailable
- Prompt user to continue with offline mode on API failure
- Extension-based categorization for 80+ file extensions
- Add Video category to default categories
- Skip files with unknown extensions in offline mode
- Fix critical HOME variable bug that crashed on Windows
* Replace hardcoded HOME env var with Config::get_data_dir()
* Now uses cross-platform directories crate
* Resolves to %APPDATA% on Windows, ~/.config on Linux/macOS
- Fix Unix-style path separators in display output
* Use std::path::MAIN_SEPARATOR for OS-appropriate paths
* Windows now shows backslashes, Unix shows forward slashes
- Implement batching for large file lists (100+ files)
* Split file processing into batches of 50 files
* Prevents network timeouts and API payload size issues
* Added progress feedback for batch processing
* Increased timeout from 30s to 120s per batch
- Bump version to 1.0.3
All tests passing, clippy clean, fully cross-platform compatible