If your ๐๐ผ๐๐ป๐น๐ผ๐ฎ๐ฑ๐ ๐ณ๐ผ๐น๐ฑ๐ฒ๐ฟ ๐น๐ผ๐ผ๐ธ๐ ๐น๐ถ๐ธ๐ฒ ๐ฎ ๐ฑ๐๐บ๐ฝ ๐ผ๐ณ ๐ฃ๐๐๐, ๐ญ๐๐ฃ๐, ๐ถ๐บ๐ฎ๐ด๐ฒ๐, ๐ฐ๐ผ๐ฑ๐ฒ ๐ณ๐ถ๐น๐ฒ๐, ๐ถ๐ป๐๐๐ฎ๐น๐น๐ฒ๐ฟ๐, ๐ฎ๐ป๐ฑ ๐ฟ๐ฎ๐ป๐ฑ๐ผ๐บ ๐๐๐๐ณ๐ณ, Segre is built exactly for that problem.
๐ง๐ต๐ฒ ๐ถ๐ฑ๐ฒ๐ฎ ๐ฏ๐ฒ๐ต๐ถ๐ป๐ฑ ๐ฆ๐ฒ๐ด๐ฟ๐ฒ ๐ฐ๐ฎ๐บ๐ฒ ๐ณ๐ฟ๐ผ๐บ ๐บ๐ ๐ผ๐๐ป ๐๐๐๐๐ฒ๐บ -
my Downloads folder was completely unmaintained, chaotic, and painful to navigate.
Instead of manually cleaning it every few weeks, I decided to build a CLI tool that does it properly and safely.
๐ npm : Link
๐ npm install -g segre
๐ segre ./foldername
โ ๐ช๐ต๐ฎ๐ ๐ฆ๐ฒ๐ด๐ฟ๐ฒ ๐ฑ๐ผ๐ฒ๐
- Automatically organizes files by category (Images, Documents, Code, Videos, Archives, etc.)
- Supports date-wise organization (Year / Month structure)
- Dry-run mode to preview changes
- Undo feature to revert the last operation
- Interactive mode to confirm each file move
- Custom categories via JSON config
- Verbose logging, progress bars, safe file handling
Basically:
Your dirty, messy Downloads folder (or any folder) will not be dirty anymore.
โ ๐ช๐ต๐ ๐ ๐ฟ๐ฒ๐๐ถ๐๐ถ๐๐ฒ๐ฑ ๐ฎ๐ป๐ฑ ๐๐ฝ๐ฑ๐ฎ๐๐ฒ๐ฑ ๐๐ต๐ถ๐ ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐
While improving Segre, I learned a lot beyond just adding features:
- How to write proper docstrings that explain intent, not just logic
- How to write documentation that other users can actually understand
- Designing CLIs with safe defaults and rollback support
- Thinking from a userโs perspective, not just as a developer
- Structuring a project like a maintained open-source tool, not a script
- Writing Jest tests changed how I design functions - testability now drives my architecture. This update helped me understand that good software is not just about working code - itโs about usability, clarity, and trust.
Would love feedback, suggestions, or feature ideas.
Connect with Me : LinkedIn
Top comments (0)