An open API service indexing awesome lists of open source software.

https://github.com/tmpstpdwn/trashx

trashx - A simple trash management tool.
https://github.com/tmpstpdwn/trashx

bash cli csvlens linux shell trashcli trashx unix

Last synced: about 1 month ago
JSON representation

trashx - A simple trash management tool.

Awesome Lists containing this project

README

          

# Trashx - A simple trash management tool.

`trashx` is a simple trash management tool.

## Dependancies

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

## Installation

```bash
git clone https://github.com/tmpstpdwn/trashx.git
cd trashx
mv src/trashx ~/.local/bin
```

- Make sure that `~/.local/bin` is in `$PATH`.

## Usage

``` bash
Usage: trashx

Action | Arg
----------------------------------------------------------------------------
-t, --trash | ... : 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](LICENSE).