filesearch

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSearcher

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

func NewFileSearcher

func NewFileSearcher(workingDir string, _ *filesystem.Guard) *FileSearcher

func (*FileSearcher) Search

func (s *FileSearcher) Search(query string, limit int) []string

Search returns up to limit relative paths whose names contain query as a substring. Returns nil if query is empty. The file list is cached on first call and refreshed on demand in the background.

Jump to

Keyboard shortcuts

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