Skip to content

pookdeveloper/fzf_delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fzf_delete

An interactive delete function for Fish shell using fzf. This plugin allows you to safely and easily delete files and directories from your terminal with a modern, interactive UI.


Features

  • Interactive selection of files and directories to delete using fzf.
  • Confirmation prompts using Fish's built-in read command (no external prompt dependencies).
  • Supports filtering by files, directories, and hidden items.
  • Prevents accidental deletion with clear warnings and confirmation.

Requirements

Install requirements on macOS:

brew install fzf

Installation

With Fisher

fisher install https://github.com/pookdeveloper/fzf_delete

Options

  • No parameters: shows all (except hidden)
  • f: only files
  • d: only directories
  • a: all (files and directories)
  • --hidden: include hidden files/directories
  • --pattern <regex>: filter items by regex pattern (applied to full path)
  • --exclude <regex>: exclude items matching regex pattern (applied to full path)
  • --older-than <duration>: filter items older than duration (e.g., 7d, 3w, 1y)

Examples

fzf_delete                        # Shows files and directories (excluding hidden)
fzf_delete d --hidden             # Shows only directories (including hidden)
fzf_delete f --hidden             # Shows only files (including hidden)
fzf_delete --pattern '.*\\.log$'  # Shows only files ending in .log
fzf_delete --older-than 30d --exclude 'backup' # Shows items older than 30 days, excluding paths containing 'backup'

Credits

  • Inspired by the Fish shell community and modern CLI tools.
  • Uses fzf.

License

MIT

About

Interactive delete function for Fish shell using fzf and gum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages