/trashx

trashx - A simple trash management tool.

Primary LanguageShellMIT LicenseMIT

Trashx - A simple trash management tool.

trashx is a simple trash management tool.

Dependancies

  • fzf : for listing, searching through and selecting trashed items.

Installation

git clone https://github.com/tmpstpdwn/trashx.git
cd trashx
mv src/trashx ~/.local/bin
  • Make sure that ~/.local/bin is in $PATH.

Usage

Usage: trashx <Action> <Arg>

Action         | Arg
----------------------------------------------------------------------------
  -t, --trash  | <path1> <path2> ... : Move a file or directory to the trash
  -e, --empty  |                     : Empty the trash
  -l, --list   |                     : List the contents of the trash
  -h, --help   |                     : Show this help message
  • This program uses fzf to interface with trashed data.
  • You can use --list action to view, search and restore trashed data via fzf.
  • Following are the fzf keybindings.
Key Combo Description
Tab Toggle current selection and move down
Shift+Tab Toggle current selection and move up
Esc Exit without making a selection
Enter Restore current selection(s) if there are any

License

This project is licensed under the MIT LICENSE.