files

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEntry

func FormatEntry(e Entry) string

FormatEntry formats a file entry for display in the TUI list

func GeneratePreview

func GeneratePreview(entry Entry, width, height int) string

GeneratePreview generates a preview of the file entry for the TUI preview window

func GetDirectoryListing

func GetDirectoryListing(path string) string

GetDirectoryListing returns a formatted listing of a directory's contents

func GetFileIcon

func GetFileIcon(isDir bool) string

GetFileIcon returns the appropriate icon for a file or directory

func RunSearch

func RunSearch()

RunSearch runs the interactive file search

Types

type Entry

type Entry struct {
	Path  string
	IsDir bool
	Size  int64
	Mode  fs.FileMode
}

Entry represents a file or directory

func Collect

func Collect(root string) []Entry

Collect walks the directory tree and collects all files and directories

Jump to

Keyboard shortcuts

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