A few weeks ago, I made a small but painful mistake I ran rm -rf in the wrong directory and nuked an important folder š.
And as i was learnig go at that time i decided to build a tool to fix that issue i know 'rm -i' exists but i wanted to build something so i build vanish(vx)
which is a safer, smarter alternative to rm.
Some keyFeatures i added
- Asks before deleting files
- It moves files to a ācacheā instead of deleting them outright.
- That means you can easily restore them later, or have them automatically cleaned up after a set number of days.
- See your stats, list of files/folders in cache
- Have TUI built by using bubbletea and lipgloss
-It supports batch operations and cache management - File are either deleted after days have retention days have passed it does all that without relying on daemons or cron jobs. Check for deletion date and deletes them when vanish is used
- Also added a purge option to delete files which have x days left before delteion
- Also you can customize how it looks and behaves(to some extent) through a simple TOML config from.
I also put together a small website for it (partly because Iām learning design too
š
):
Whats your opinion on this projects
Would love to get your feedback ā on both the tool and the website.
Any thoughts, features you'd want, or critiques are super welcome š
š https://dwukn.vercel.app/projects/vanish
Source code https://github.com/Aelune/venus