gt

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
dirs
Package dirs provides functions sanitize directory names.
Package dirs provides functions sanitize directory names.
filemode
Package filemode does things io/fs doesn't do
Package filemode does things io/fs doesn't do
files
Package files finds and displays files on disk
Package files finds and displays files on disk
filter
Package filter filters files based on specific criteria
Package filter filters files based on specific criteria
interactive
Package interactive implements a charm-powered table to display files.
Package interactive implements a charm-powered table to display files.
interactive/modes
Package modes implements Mode type for interactive table.
Package modes implements Mode type for interactive table.
interactive/sorting
Package sorting implements Sorting type for interactive table.
Package sorting implements Sorting type for interactive table.
prompt
Package prompt implements prompt functions for runes and strings.
Package prompt implements prompt functions for runes and strings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL