Skip to content

gabrielcapilla/zrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zrm

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.

Features

  • Interactive Deletion: Uses fzf to 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.

Prerequisites

  • Nim (version 2.2.4 or higher)
  • fzf

Installation

Install using Nimble via GitHub

nimble install https://github.com/gabrielcapilla/zrm.git

Build

  1. Clone the repository:

    git clone https://github.com/gabrielcapilla/zrm.git
    cd zrm
  2. Install dependencies and build the project using Nimble:

    nimble install

Usage

Simply run zrm in any directory:

zrm

This 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 y to confirm the deletion or n to cancel.

Uninstallation

To remove zrm from your system, use Nimble:

nimble uninstall zrm

About

Remove folders and files easily and efficiently

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages