gaze

command module
v0.0.0-...-4efa062 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 3 Imported by: 0

README

gaze

gaze is a simple ls-like command-line tool written in Go, designed to list directory contents in a grid or detailed format. It works on both Unix and Windows systems.

Install

Ensure you have Go installed on your system. The simplest way is to run:

go install github.com/vzfdn/gaze@latest

This downloads, builds, and installs gaze to $GOPATH/bin (or $HOME/go/bin). Ensure it's in your $PATH to run gaze anywhere. After installation, you can run the tool from anywhere simply by typing:

gaze [flags] [path]

Alternatively, to build manually from source:

git clone https://github.com/vzfdn/gaze.git
cd gaze
go build

Then run it with:

./gaze [flags] [path]

Example

gaze terminal demo

Flags

  • -a, --all: Show hidden entries (e.g., dot files on Unix)
  • -g, --grid: Display entries in a grid layout (default)
  • -l, --long: Use detailed listing format (permissions, owner, group, size, time, name)
  • -h, --header: Include a header row in long format output
  • -R, --recursive: Recursively list subdirectories
  • -T, --tree: Recursively display directory contents as a tree-like format
  • -L, --dereference: Show info for the target file, not the symlink
  • -F, --classify: Append file type indicators (e.g., / for directories, * for executables, @ for symlinks)
  • -s, --size: Sort entries by file size (largest first)
  • -t, --time: Sort entries by modification time (newest first)
  • -k, --kind: Sort entries by file type (directories first, then files)
  • -x, --extension: Sort entries by file extension (alphabetically)
  • -r, --reverse: Reverse the order of sorting
  • -U, --no-sort: Do not sort entries
  • --no-color: Do not colorize output

TODO

  • Performance: Replace slice buffering with stream processing for entries
  • Performance: Refactor tree view rendering to reduce memory usage
  • Feature: Add -m/--media flag to show file metadata (e.g., media length)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package entry provides functionality for listing directory entries with customizable formatting and cross-platform support.
Package entry provides functionality for listing directory entries with customizable formatting and cross-platform support.

Jump to

Keyboard shortcuts

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