trashx is a simple trash management tool.
fzf: for listing, searching through and selecting trashed items.
git clone https://github.com/tmpstpdwn/trashx.git
cd trashx
mv src/trashx ~/.local/bin- Make sure that
~/.local/binis in$PATH.
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
--listaction 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 |
This project is licensed under the MIT LICENSE.