π organize Smart, stylish, and extensible file organizer for macOS β written in Rust π¦
β¨ What is organize? organize is a CLI tool that automatically sorts and moves your cluttered files (like those in ~/Downloads) into tidy subfolders β grouped by file type, and optionally by year/month.
Organize your digital life in seconds. No more Untitled-2.png, resume(7).pdf, or mysterious .zip duplicates lying around.
π‘ Features
β Smart file classification (over 100+ known types)
β Auto-handles duplicates using file hash comparison
β Supports date-based subfoldering (e.g., Documents/2024/06)
β macOS .app bundle handling
β Stylish terminal output with colored summaries
β Dry-run mode to preview changes
β Designed to run once or watch directories live (coming soon)
β 100% written in Rust: fast, safe, and native
π¦ Installation πΊ Homebrew (recommended for macOS)
brew tap masumeebhami/organize
brew install organize
π‘ Donβt see the latest version? Run brew update.
π Usage π§Ή Run Once (default behavior)
organize --once --dir ~/Downloads
This organizes your ~/Downloads directory. You can customize the path:
organize --dir ~/Desktop π§ͺ Preview without changing anything
organize --dry-run --dir ~/Downloads
π Folder Structure Organize by category and date:
~/Downloads/
βββ Documents/
β βββ 2024/
β βββ 06/
βββ Images/
β βββ 2023/
β βββ 12/
βββ Archives/
π File Types Covered Images: jpg, png, heic, webp, ...
Videos: mp4, mkv, mov, ...
Audio: mp3, wav, ...
Documents: pdf, docx, txt, ...
Code: rs, py, js, html, ...
Archives: zip, tar, 7z, ...
System, Fonts, Apps, Packages, Calendars...
Want more? Just edit category_map() in src/organizer.rs.
π§βπ» Contributing Found a bug? Have a cool idea? PRs and issues are welcome!
β€οΈ Author Made with love by @masumeebhami Special thanks to the Rust community and contributors.
π License MIT