A small command line program to interface with the XDG trash specification.
Go to file
Lilian Jónsdóttir a6a62f74d1 add package commands to justfile
and remove the old windows binary boilerplate I had forgotten about
2024-07-30 21:06:32 -07:00
contrib/completions update fish completion 2024-07-28 18:29:39 -07:00
internal fix panic when listing and restoring/cleaning wrong file 2024-07-30 19:44:02 -07:00
.gitignore add package commands to justfile 2024-07-30 21:06:32 -07:00
go.mod add filter to table 2024-07-30 18:37:59 -07:00
go.sum add filter to table 2024-07-30 18:37:59 -07:00
gt.1 update readme and manpage 2024-07-30 20:06:52 -07:00
gt.1.scd update readme and manpage 2024-07-30 20:06:52 -07:00
justfile add package commands to justfile 2024-07-30 21:06:32 -07:00
LICENSE initial commit, it does the thing 2024-06-19 19:19:06 -07:00
main.go add selectall back 2024-07-30 19:42:59 -07:00
README.md update readme and manpage 2024-07-30 20:06:52 -07:00

gt

g(o)t(rash) is a simple, command line program to interface with the XDG Trash. Files in the trash may be listed, cleaned, or restored via an interactive table, and filtered with various flags.

Interactive Mode

Run with no args to start interactive mode. In interactive mode, files in the trash are displayed, and may be selected to either restore or remove permanently.

rm-like Trashing

Run with no command and only filename(s) as argument(s) to skip displaying files, sending them straight to the trash, in a quick, rm-like way.

Commands

Files are displayed in an interactive table, allowing them to be sorted, filtered, and selectively operated on.

trash / tr

Find files on the filesystem based on the filter flags and any filename args.

list / ls

Find files in the trash based on the filter flags and any filename args.

restore / re

Find files in the trash based on the filter flags and any filename args.

clean / cl

Find files in the trash based on the filter flags and any filename args.

See gt(1) or gt --help for more in depth information on all command line flags.