zrm is a command-line tool written in Nim that enhances file and folder deletion by integrating with fzf (a command-line fuzzy finder). It provides a fast and interactive way to select multiple items for deletion.
- Interactive Deletion: Uses
fzfto create a fuzzy-searchable, interactive list of files and directories. - Multiple Selections: Select one or more items to delete using the
<TAB>key. - Safety First:
- Requires confirmation before deleting any files.
- Prevents the deletion of critical system paths like your home directory (
/home/user) or the root directory (/).
- Efficient: Quickly lists items in the current directory for selection.
nimble install https://github.com/gabrielcapilla/zrm.git-
Clone the repository:
git clone https://github.com/gabrielcapilla/zrm.git cd zrm -
Install dependencies and build the project using Nimble:
nimble install
Simply run zrm in any directory:
zrmThis will open an fzf window listing all files and subdirectories in the current location.
- Navigate the list with the arrow keys.
- Use
<TAB>to select one or more items. - Press
<Enter>to confirm your selection. - Type
yto confirm the deletion ornto cancel.
To remove zrm from your system, use Nimble:
nimble uninstall zrm