r/zsh • u/AmbitiousRadish7617 • 13h ago
undo v0.1.1 is out: search & log & repair
quick recap if you missed v0.1.0: undo journals your mv/cp/rm/mkdir/etc and lets you reverse them, deleted stuff goes to the trash instead of getting nuked so even rm is recoverable.
what's new in v0.1.1:
- undo search <name> - find journal entries by filename or path, useful once your history gets long and you can't remember which command touched what
- undo log - activity view, shows when something ran, which command, and which files it touched. cleaner than digging through undo history
- undo repair - checks the journal db and rebuilds it if it's corrupted, backs up the old one first. your trash is never touched by this
- switched the license to MIT starting this version (v0.1.0 stays GPLv3)
next up:
- v0.1.2: a config file + TUI for settings, and a prune command that cleans up old journal entries. it's hybrid by default, keeps your trashed files around unless you explicitly opt into emptying the trash too
- v0.1.3: a small plugin system so you can alias your own command names to the built-ins, plus self-update so you don't have to manually grab new releases
grab it: https://github.com/nvrmnd-png/undo/releases/tag/v0.1.1
thanks again to everyone who gave feedback on the last post, some of this came directly from your suggestions