list2

package
v0.0.0-...-d1c8724 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0, LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExcludeRex *regexp.Regexp
View Source
var FilterFlag bool
View Source
var GlobFlag bool
View Source
var IncludeRex *regexp.Regexp
View Source
var InputDir string
View Source
var LastAltered = "Apr 8, 2024"
View Source
var ReverseFlag bool
View Source
var SizeFlag bool
View Source
var SmartCaseFlag bool
View Source
var VerboseFlag bool
View Source
var VeryVerboseFlag bool

Functions

func ExpandADash

func ExpandADash(in string) (string, error)

func ExpandAllDashes

func ExpandAllDashes(in string) (string, error)

func GetMagnitudeString

func GetMagnitudeString(j int64) (string, ct.Color)

func ProcessDirectoryAliases

func ProcessDirectoryAliases(cmdline string) string

func ReplaceDigits

func ReplaceDigits(in string) string

ReplaceDigits -- allows me to enter 1-9 and have it replaced with the corresponding letter, as I tend to enter "1" when I mean "a".

Types

type DirAliasMapType

type DirAliasMapType map[string]string
var DirectoryAliasesMap DirAliasMapType

func GetDirectoryAliases

func GetDirectoryAliases() DirAliasMapType

type FileInfoExType

type FileInfoExType struct {
	FI      os.FileInfo
	Dir     string
	RelPath string // this is a misnomer, but I'll leave this here.
}

FileInfoExType is what is returned by all of the routines here. Fields are file info, Dir and RelPath.

func FileSelection

func FileSelection(inList []FileInfoExType) ([]FileInfoExType, error)

func MakeList

func MakeList(excludeRegex *regexp.Regexp, sizeSort, reverse bool) ([]FileInfoExType, error)

MakeList returns a slice of FileInfoExType and error. I initially wrote this, and later decided to use the idiomatic name as a wrapper to this.

func MyReadDir

func MyReadDir(dir string) ([]FileInfoExType, error)

func New

func New() ([]FileInfoExType, error)

New -- returns a slice of FileInfoExType and error. Idiomatic way to use the routines here.

Directories

Path Synopsis
cmd
copying command
copyingc command
delrex command
listvlc command

Jump to

Keyboard shortcuts

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