finder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg *config = &config{
	JumpHiddenItem: true,
	Ext:            nil,
	Dir:            false,
	File:           false,
	MatchFullPath:  false,
	TimeRule:       "",
	timeRuleType:   "",
	ExcludeDir:     nil,
	Blur:           false,
	Fast:           false,
	Go:             false,
	Num:            1,
}
View Source
var TypeMap map[string][]string = map[string][]string{
	"video": {"mp4", "mkv", "avi", "wmv", "mov", "rmvb"},
	"audio": {"mp3", "wav", "flac", "aac", "wma"},
	"img":   {"jpg", "png", "gif", "bmp", "tiff"},
	"doc":   {"md", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf", "txt"},
	"exec":  {"exe", "msi", "bin"},
	"comp":  {"zip", "rar", "7z", "tar", "gz", "bz2"},
	"code": {"c", "cpp", "java", "go", "js", "py", "rb",
		"swift", "ts", "sh", "vue", "dart", "php", "cs", "asm", "lua"},
	"font":  {"ttf", "otf", "woff", "woff2"},
	"other": {"iso", "dmg", "dll"},
}

Functions

func Find

func Find(pattern, root string) error

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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