lsg

command module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 20 Imported by: 0

README

Go Report Card

lsg

lsg is a cross-platform implementation of ls written in Go

lsg

Features

  • Eye candy (Colors, Nerd Font icons)
  • Glob patterns (*.go, **/*, **/*.png)
  • Tree output
  • Execution speed is comparable to ls
  • Supports Windows hidden files and junctions

Install

With go get:

go get github.com/operatios/lsg

Or download a binary from releases page

Usage

Examples:

  • lsg -alxb
  • lsg dir1 dir2 --sort=extension
  • lsg **/*.flac **/*.png

Note: to use Globs on Linux you need to enquote them like this: lsg "**/*"

Flags:

-a, --all            do not ignore hidden files
-l, --long-listing   use a long listing format
-b, --bytes          with -l: print size in bytes
-x, --extend         with -l: print filemode and owner/group info
-t, --tree           use a tree format
-s, --sort string    sort by size (s), time (t), extension (x), category (c)
-r, --reverse        reverse file order
-c, --columns int    set maximum amount of columns
    --col-sep int    set column separator length (default 2)
    --no-targets     disable link targets
    --no-colors      disable colors
    --no-icons       disable icons

Customization

To edit the color scheme or replace/add icons, you need to have Go installed

  • git clone https://github.com/operatios/lsg.git

  • Edit the color scheme and icons to your liking

  • Run go install in edited directory

More screenshots

tree glob list

Special thanks to:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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