fileref

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResult

type SearchResult struct {
	Path  string
	IsDir bool
}

SearchResult is a single entry returned by Search. It carries the relative path (slash-normalized) and whether the entry is a directory, so callers can present the correct icon and append "/" vs " " on selection.

func Search(root, query string, limit int) []SearchResult

Search finds entries under root whose path matches query. A match is recorded when the query is a substring of the file's basename (preferred tier), of any slash-separated path segment (fallback tier), or of a directory name (lowest tier). It is bounded by limit and skips common generated/vendor directories so interactive completion stays responsive on large workspaces.

Jump to

Keyboard shortcuts

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