A terminal based automated file organizer inspired by Hazel.
Hazelnut is a powerful terminal-based file organizer inspired by Hazel for macOS, designed to automatically manage your files based on customizable rules. It continuously watches specified folders and takes actions like moving, copying, renaming, or deleting files when they match your defined criteria. The tool features a beautiful terminal user interface (TUI) for managing rules and monitoring activity in real-time, while also offering a background daemon mode that runs silently to organize files 24/7.
The tool excels with its flexible rules engine that can match files based on name patterns (glob or regex), file extensions, size, age, and other attributes. Actions range from simple file operations to running custom scripts, with support for advanced features like variable substitution in rename patterns and cross-platform desktop notifications. Hazelnut is perfect for power users, developers, and anyone who wants to keep their file system organized automatically without manual intervention.
With 15 built-in themes, comprehensive activity logging, and a human-readable TOML configuration format, Hazelnut strikes a balance between powerful functionality and ease of use. The tool is cross-platform, though the daemon functionality is currently limited to macOS and Linux, while Windows users can still access the full TUI experience.
# via Homebrew
brew install ricardodantas/tap/hazelnut
# via Cargo
cargo install hazelnut