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.
- Host: GitHub
- URL: https://github.com/tmpstpdwn/trashx
- Owner: tmpstpdwn
- License: gpl-3.0
- Created: 2024-06-14T05:17:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T08:54:51.000Z (over 1 year ago)
- Last Synced: 2025-01-14T06:29:48.194Z (over 1 year ago)
- Topics: bash, cli, csvlens, linux, shell, trashcli, trashx, unix
- Language: Shell
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).