Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchResult ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.