Commit Graph

34 Commits

Author SHA1 Message Date
glitchySid
6ed5e80d0a docs: update documentation for custom path support
- Add PATH argument to command-line options tables
- Add Custom Path Organization section with examples
- Update basic usage examples to include path usage
- Add combined options examples with custom paths
- Add Custom Path Support section to README
- Document path validation, normalization, and use cases

Documentation now fully covers the new custom path functionality
with clear examples and explanations.
2026-01-07 22:22:18 +05:30
glitchySid
3aa82d3f90 feat: add custom path support with comprehensive optimizations
- Add optional path argument to organize any directory instead of configured download folder
- Implement path validation and normalization for security and consistency
- Remove unnecessary cloning operations for better performance
- Extract magic numbers to named constants for better maintainability
- Add comprehensive documentation and error handling
- Improve error messages with better context and formatting

Key improvements:
- Performance: Eliminates unnecessary PathBuf allocations
- Security: Path normalization prevents path traversal attacks
- Robustness: Early validation prevents silent failures
- Code Quality: Better documentation, consistent patterns, improved error handling

The implementation supports:
- Current directory: ./noentropy .
- Absolute paths: ./noentropy /path/to/folder
- Relative paths: ./noentropy ./subfolder
- Backward compatibility: ./noentropy (uses configured download folder)

All existing tests pass, no regressions introduced.
2026-01-07 22:18:57 +05:30
glitchySid
d4e8dbc6b3 docs: restructure documentation into organized files
Split the 630-line README.md into focused, well-organized documentation:

- README.md: Concise overview with quick start and links
- docs/INSTALLATION.md: Installation instructions and setup
- docs/CONFIGURATION.md: Configuration options and custom categories
- docs/USAGE.md: Command-line options and usage examples
- docs/HOW_IT_WORKS.md: Architecture and internal processes
- docs/TROUBLESHOOTING.md: Common issues and solutions
- docs/DEVELOPMENT.md: Project structure and development guide
- docs/CONTRIBUTING.md: Contribution guidelines and standards

Benefits:
- Main README is now clean and welcoming (~150 lines vs 630)
- Each doc has a clear, focused purpose
- Better navigation with cross-linking between docs
- Follows GitHub best practices with docs/ directory
- Easier to maintain and update specific sections
2026-01-02 00:55:29 +05:30
glitchySid
0eedb61455 added usage for --change-api key in docs 2026-01-02 00:42:32 +05:30
glitchySid
adfc426ede feat: add --change-key flag to update API key 2025-12-31 21:22:46 +05:30
glitchySid
e1974599c8 changed the version 2025-12-31 13:04:24 +05:30
glitchySid
1f0547a210 Add custom categories feature
- Add support for user-defined custom categories in config.toml
- Update Config struct with categories field and default_categories() function
- Thread categories through GeminiClient and prompt builder
- Update AI prompts to use dynamic categories instead of hardcoded ones
- Add comprehensive documentation with examples for different use cases
- Update tests to support new categories field
- Maintain backward compatibility with default categories
- Update version from 1.0.3 to 1.0.4

Closes feature request for custom categories.
2025-12-31 13:01:15 +05:30
Siddhesh Mhatre
08a272c4de Merge pull request #7 from glitchySid/fix/windowscompatibility
Fix critical Windows compatibility issues and implement file batching
2025-12-30 19:48:43 +05:30
glitchySid
282e032086 Fix critical Windows compatibility issues and implement file batching
- 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
2025-12-30 19:43:19 +05:30
Siddhesh Mhatre
5a18edf3da Merge pull request #6 from glitchySid/refactor
Refactor
2025-12-30 19:30:03 +05:30
glitchySid
9843303d9a fixed the network error when files number exceed 60-70
increased the timeout sec from 30 to 120
and added batching if batch size exceeds 50(thats where it seems to
cause problem)
2025-12-30 19:27:45 +05:30
glitchySid
7c551126cc update README with new modular file structure and fix unused import
- Updated Project Structure section to reflect new modular architecture
- Added detailed module breakdown (cli, files, gemini, models, settings, storage)
- Included Module Overview with descriptions of each module's purpose
- Removed HACKATHON_REVIEW.md file
- Fixed unused import warning in src/files/batch.rs
2025-12-30 02:24:44 +05:30
Siddhesh Mhatre
66a665f336 Merge pull request #4 from glitchySid/refactor
refactored every component thoroughly.
2025-12-30 02:10:46 +05:30
glitchySid
2211057e4f fixed formatting 2025-12-30 02:10:00 +05:30
glitchySid
33784d8f1d refactored every component thoroughly. 2025-12-30 02:08:26 +05:30
Siddhesh Mhatre
9a54956542 Merge pull request #3 from glitchySid/feature/undo
added undo feature
2025-12-29 21:55:11 +05:30
glitchySid
a7668a6f0f fixed formatting 2025-12-29 21:54:11 +05:30
glitchySid
79cfae74ea added undo feature
feature added by Agent
2025-12-29 21:47:57 +05:30
Siddhesh Mhatre
2a79a8838b Merge pull request #2 from glitchySid/docs/installation
added usage guide for --recursive flag
2025-12-29 21:09:55 +05:30
glitchySid
5e57b5f119 added usage guide for --recursive flag 2025-12-29 21:09:10 +05:30
Siddhesh Mhatre
975182f218 Merge pull request #1 from glitchySid/feature/recursive
added recursive file reading using --recursive flag.
2025-12-29 18:54:09 +05:30
glitchySid
6df8af91bb added recursive file reading using --recursive flag.
added a feature to scan subdirectory and organize the file structure
even further.
2025-12-29 18:47:50 +05:30
glitchySid
09828ee2f5 ci: Add multi-platform release workflow with GitHub Actions 2025-12-29 12:50:25 +05:30
glitchySid
06eff6fcf8 style: Fix rustfmt formatting issues 2025-12-29 00:54:29 +05:30
glitchySid
d25dcaa0de fix: Resolve clippy warnings - allow dead code and collapse if statements 2025-12-29 00:49:53 +05:30
glitchySid
2dc269b148 ci: Add GitHub Actions workflow with clippy and fmt checks 2025-12-29 00:46:20 +05:30
glitchySid
1a72116b9d refactor: Simplify codebase by extracting modules and helpers
Extract code into focused modules for better maintainability:

New modules:
- gemini_types.rs (32 lines) - Response type definitions
- gemini_helpers.rs (51 lines) - Prompt builder and conversion helpers
- prompt.rs (130 lines) - User input and validation logic

Refactored files:
- gemini.rs: 278 -> 259 lines (-19 lines)
  * Extract response parsing into helper methods
  * Extract request building into separate methods
  * Extract retry logic into dedicated functions
  * Use PromptBuilder for cleaner prompt construction

- config.rs: 275 -> 127 lines (-148 lines)
  * Extract all prompting logic to prompt.rs module
  * Simplify with Default trait for Config
  * Cleaner API methods

Benefits:
- Better separation of concerns
- Easier to test and maintain
- Clearer module boundaries
- Reduced nesting and complexity
- All 31 tests still passing
2025-12-29 00:35:14 +05:30
glitchySid
32c1f283ac changes to gitignore 2025-12-29 00:16:48 +05:30
glitchySid
3cdcd33439 feat: Add comprehensive improvements - CLI, error handling, and docs
- Add CLI argument parsing with clap (dry-run, max-concurrent options)
- Replace .env configuration with interactive prompts and TOML config
- Add BaseDirs-based configuration storage in ~/.config/noentropy/
- Improve Gemini API client with configurable model and timeout
- Add concurrent processing with semaphore for rate limiting
- Improve error handling with retry logic and exponential backoff
- Add comprehensive README with installation and usage instructions
- Add config.example.toml template for users
- Update main.rs with better UX and colored output
- Add lib.rs exports for config module
- Refactor error response parsing for cleaner code
- Update API endpoint to use configurable model parameter
- Add proper error type handling in gemini_errors.rs
2025-12-29 00:11:27 +05:30
glitchySid
bbf88fc4fc refactor: Separate tests into dedicated files to reduce source file sizes
- Extract all tests from cache.rs, files.rs, config.rs to separate test files
- Create cache_tests.rs, files_tests.rs, config_tests.rs
- Reduce cache.rs: 421 -> 220 lines (-191 lines)
- Reduce files.rs: 390 -> 264 lines (-126 lines)
- Reduce config.rs: 354 -> 275 lines (-79 lines)
- Total reduction: 396 lines from main source files
- All 31 tests still passing
2025-12-29 00:05:08 +05:30
glitchySid
a9dbaf36be test: Add comprehensive test suite for basic functionality
- Add 31 tests across files, config, and cache modules
- Test file operations (FileBatch, is_text_file, read_file_sample)
- Test configuration (serialization, API key validation, path expansion)
- Test caching (response retrieval, file change detection, eviction)
- Add tempfile dev dependency for test fixtures
- All tests passing with 100% success rate
2025-12-28 23:58:40 +05:30
glitchySid
868ef57498 fix: Add Windows compatibility for file operations
- Fix home directory detection using BaseDirs from directories crate
- Add cross-platform file moving with copy+delete fallback
- Replace Unix-specific HOME env var usage
- Handle cross-filesystem moves on Windows automatically
2025-12-28 23:54:53 +05:30
glitchySid
5a92ecdeb7 feat: Add comprehensive improvements - async optimization, caching, and error handling
- Add async optimization using futures for concurrent file processing
- Implement intelligent caching system with SHA256 file change detection
- Add comprehensive custom error handling for Gemini API responses
- Fix critical error handling issues throughout the codebase
- Replace fragile JSON parsing with proper struct-based deserialization
- Add automatic retry logic for rate limits and network issues
- Improve user experience with detailed error messages and progress feedback
- Add cache persistence and automatic cleanup of old entries
- Optimize performance for batch processing scenarios
2025-12-28 19:15:53 +05:30
glitchySid
3c038e3a3c first commit
a tool that automatically organize your messy folders
2025-12-20 15:32:38 +05:30