Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ vanish Public

Modern safe file deletion tool with recovery - Never lose files again! Beautiful TUI, pattern restore, themes. Alternative to rm with cache & undo functionality.

License

Notifications You must be signed in to change notification settings

Nurysso/vanish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—‘οΈ Vanish (vx)

A modern, safe file deletion tool with recovery capabilities

Release License

Features β€’ Installation β€’ Quick Start β€’ Themes β€’ Documentation


πŸŽ₯ See It In Action


🌟 Why Vanish?

Accidentally deleted an important file? Vanish gives you peace of mind with a smart cache system that lets you recover files easily. Say goodbye to permanent deletion anxiety and hello to confident file management.

✨ Features

πŸ›‘οΈ Safe Deletion Files move to cache, never truly deleted

πŸ”„ Pattern-based Recovery Restore using wildcards and flexible matching

πŸ“Š Rich Statistics Track cache usage and file metrics

🎨 Beautiful TUI 8 stunning built-in themes

⚑ Blazing Fast Handles large directories effortlessly

πŸ”§ Highly Configurable Customize via simple TOML config

πŸ“ Audit Trails Complete operation logging

🧹 Auto Cleanup Configurable retention policies


πŸš€ Installation

Quick Install (Recommended)

Using curl:

curl -LsSf https://raw.githubusercontent.com/Nurysso/vanish/main/install.sh | sh

Using wget:

wget -qO- https://raw.githubusercontent.com/Nurysso/vanish/main/install.sh | sh

Install Specific Version

Replace <tag> with your desired version (e.g., v0.9.0):

curl -LsSf https://raw.githubusercontent.com/Nurysso/vanish/<tag>/install.sh | sh

Build from Source

git clone https://github.com/Nurysso/vanish.git
cd vanish && make build
sudo mv vx /usr/local/bin/

πŸ“– Quick Start

Basic Operations

# Delete files/directories safely
vx file.txt folder/ *.log

# List everything in cache
vx --list

# Restore files by pattern
vx --restore "*.txt" "project-*"

# Get detailed file info
vx --info "important-file"

# Clear entire cache
vx --clear

# Remove files older than 30 days
vx --purge 30

# View cache statistics
vx --stats

# Skip confirmations (use with caution!)
vx --restore --noconfirm "*.backup"

🎨 Themes & Customization

Vanish includes 8 gorgeous themes designed for different moods and environments:

Default 🎯 Clean & Professional

Dark πŸŒ‘ High Contrast

Light β˜€οΈ Bright & Minimal

Cyberpunk πŸŒ† Neon Futuristic

Minimal ✨ Distraction-Free

Ocean 🌊 Calming Blues

Forest 🌲 Natural Greens

Sunset πŸŒ… Warm & Cozy

Try Them Out

# Interactive theme selector
vx --themes

Customize further via the configuration file.


πŸ“‹ Command Reference

Command Shorthand Description
vx <files...> β€” Move files/directories to cache
--restore <pattern> -r Restore files matching pattern
--list -l Show all cached files
--info <pattern> -i Detailed info about items
--clear -c Empty entire cache
--purge <days> -pr Remove files older than N days
--stats -s Display cache statistics
--path -p Show cache directory location
--themes -t Interactive theme browser
--config-path -cp Show config file location
--noconfirm -f Skip all confirmation prompts
--help -h Show help information
--version -v Display version

🎯 Pattern Matching Examples

Vanish supports powerful glob patterns for precise file restoration:

# Exact match
vx --restore "document.pdf"

# All text files
vx --restore "*.txt"

# Files starting with 'backup'
vx --restore "backup-*"

# Multiple patterns at once
vx --restore "*.log" "config.*" "test-*"

# Year-based restoration
vx --restore "*-2024-*"

πŸ›‘οΈ Safety Features

βœ… Atomic Operations Prevents data corruption during moves

βœ… Path Validation Comprehensive conflict prevention

βœ… Collision Detection Smart naming conflict resolution

βœ… Permission Preservation Maintains original file attributes

βœ… Transaction Logging Complete audit trail

βœ… Integrity Checks Verification during restoration


βš™οΈ Configuration

Vanish uses TOML for easy, human-readable configuration. Customize cache location, retention policies, themes, and more.

πŸ“š View Full Configuration Guide β†’

# Show config file location
vx --config-path

⚠️ Important Notes

Cache Directory Warning

Never manually modify the cache directory structure. To change the cache location:

  1. Update the configuration file
  2. Run vx --clear to empty the old location
  3. Restart using the new location

Security Considerations

  • Original file permissions are preserved
  • Respects filesystem ACLs and extended attributes
  • Symbolic links preserved but not followed
  • Hidden files require explicit specification

🀝 Contributing

We welcome contributions of all kinds! Here's how to get started:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/AmazingFeature
  3. Lint your code: make lint
  4. Commit your changes: git commit -m 'Add AmazingFeature'
  5. Push to the branch: git push origin feature/AmazingFeature
  6. Open a Pull Request

Report Bugs or Request Features



Acknowledgments

Built with using:


πŸ”— Links

Homepage β€’ Documentation β€’ Releases β€’ Discussions


Made with ❀️ by Nurysso

⭐ Star this repo if Vanish made your life easier!

About

Modern safe file deletion tool with recovery - Never lose files again! Beautiful TUI, pattern restore, themes. Alternative to rm with cache & undo functionality.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published