File Remover
A plugin for `lla` that provides an interactive interface for recoverable deletion. The default `remove` action moves entries into the shared `trash` store. Permanent deletion is available only through the explicit `purge` action and a second confirmation.
lla File Remover Plugin
A plugin for lla that provides an interactive interface for recoverable deletion. The
default remove action moves entries into the shared trash store. Permanent deletion
is available only through the explicit purge action and a second confirmation.
Features
- Interactive Selection: Multi-select interface for choosing files to remove
- Path Flexibility: Support for both current and specified directories
- Recoverable by Default:
removerecords original paths and moves entries to trash - Explicit Permanent Deletion:
purgeis deliberately separate and irreversible - Directory Support: Files, symlinks, and complete directory trees are supported
- User Interface: Colored output and interactive menus
Configuration
[colors]
success = "bright_green"
info = "bright_blue"
error = "bright_red"
path = "bright_yellow"Usage
Basic Operations
# Move files/directories from the current directory to recoverable trash
lla plugin run file_remover remove
# Move files/directories from a specified directory to recoverable trash
lla plugin run file_remover remove -- /path/to/directory
# Permanently delete selected entries (cannot be restored)
lla plugin run file_remover purge -- /path/to/directory
# Show help information
lla plugin run file_remover helpCommon Workflows
1. Trashing Files from Current Directory
# In target directory
cd /path/to/directory
lla plugin run file_remover remove
# Select files to trash using space, confirm with enter2. Trashing Files from Specific Directory
# Trash files from a specific directory without changing location
lla plugin run file_remover remove -- /path/to/directory
# Select files to trash using space, confirm with enterDisplay Format
─────────────────────────────────────
File Remover
─────────────────────────────────────
Select items to remove:
→ file1.txt
→ directory1
→ file2.rs
─────────────────────────────────────
Use Space to select, Enter to confirm
─────────────────────────────────────