Documentation
¶
Overview ¶
Package pathcomplete offers directory completion for a typed path prefix.
It is deliberately incapable of browsing: there is no "list everything" entry point, because Sidecar's Add Project form must never enumerate a directory before the user has typed a path prefix. A caller with an empty input gets nothing back.
Index ¶
Constants ¶
const DefaultLimit = 8
DefaultLimit is how many candidates a form shows before it stops listing.
Variables ¶
This section is empty.
Functions ¶
func Directories ¶
Directories returns directory candidates for a typed prefix, formatted the way the user is typing them: a path that began with ~ comes back with ~.
The empty input returns nil. So does a bare "~", "~/" or "/" with nothing after it: the user has expressed a root, not a prefix to complete.
Types ¶
This section is empty.